M
M
Mimuss2017-02-14 20:44:18
Objective-C
Mimuss, 2017-02-14 20:44:18

How to make the ViewController visible on top of the previous one? Like UIAlertController?

I agree. The wording is terrible, noted t. I will show an example
d54c1ed6d8e04607a612345e64f9cedd.jpg
Or something like UIAlertController

Answer the question

In order to leave comments, you need to log in

2 answer(s)
V
Vyacheslav Beltyukov, 2017-02-15
@maestrro712

everything is simple:

topViewController.view.backgroundColor = UIColor.clear
topViewController.modalPresentationStyle = .overFullScreen
bottomViewController.present(topViewController, animated: true, completion: nil)

T
Tommy32, 2017-02-15
@Tommy32

Perhaps you need a Pop Up View Controller. Those. displaying the new VC on top of ours. Here is a link to a video I watched on this topic:
https://www.youtube.com/watch?v=FgCIRMz_3dE
It's like your example.
If you want the new VC to completely overlap the previous one, I would use Present Modally.
I could be wrong, I've been doing programming for a month now.
Himself still youngling

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question