I want to present a UIViewController
programmatically which should show up (or not, rather) with transparent background. I want it for iOS 7.0 and above. I've find myself many questions (and answers) but they weren't able to help me. Here's the view hierarchy of my app.
I'm using a side menu controller (RESideMenu).
I have a rootView (base from RESideMenu) -> Showing a Center controller (along with a left view controller) in UINavigationController
.
In requirements, I'd like to present a view controller
From a pushed view controller (in navigational hierarchy)
From a presented view controller (in navigational hierarchy)
In addition, I need to present it and perform some action, and then remove it.
I'm pretty sure that this should work in many cases, with (or without) side menu, or even navigation controller.
I'm posting a separate question (and of course its answer too) into this queue, because I think it would prove helpful to the community devs who might also have been frustrated by the lack of an acceptable solution to this problem.
Do play well (with each scenario) :)
And yes, this will not show an animation, in my case, I'm showing a custom popup inside
vc
though it looks nice with this code!