Top "Uiviewcontroller" questions

The UIViewController class manages the views in iOS apps and mediates the interaction between an app's views, its underlying model objects, and the overall workflow.

Get the current displaying UIViewController on the screen in AppDelegate.m

The current UIViewController on the screen need to response to push-notifications from APNs, by setting some badge views. But how …

iphone ios uiviewcontroller push-notification
modal View controllers - how to display and dismiss

I'm breaking my head for the last one week on how to solve the issue with showing and dismissing multiple …

ios objective-c uiviewcontroller presentviewcontroller dismissviewcontroller
Get top most UIViewController

I can't seem to get the top most UIViewController without access to a UINavigationController. Here is what I have so …

swift uiviewcontroller
Programmatically set the initial view controller using Storyboards

How do I programmatically set the InitialViewController for a Storyboard? I want to open my storyboard to a different view …

ios objective-c swift uiviewcontroller uistoryboard
UIView touch event in controller

How can I add UIView touchbegin action or touchend action programmatically as Xcode is not providing from Main.storyboard?

ios swift uiview uiviewcontroller
Get to UIViewController from UIView?

Is there a built-in way to get from a UIView to its UIViewController? I know you can get from UIViewController …

ios objective-c cocoa-touch uiview uiviewcontroller
Dismissing a Presented View Controller

I have a theoretic question. Now İ'm reading Apple's ViewController guide. They wrote: When it comes time to dismiss a …

iphone ios objective-c cocoa-touch uiviewcontroller
Add a UIView above all, even the navigation bar

I want to display, above any other views, even the navigation bar, a kind of "pop-up" view that looks like …

ios uiviewcontroller uinavigationbar popupwindow
How to call a View Controller programmatically?

I have looked at all the tutorials I can find on this one, and I still don't have the answer. …

ios objective-c uiviewcontroller uistoryboard presentviewcontroller
How to get root view controller?

I need an instance of root view controller. I tried those approaches: UIViewController *rootViewController = (UIViewController*)[[[UIApplication sharedApplication] keyWindow] rootViewController]; Returns: …

objective-c swift ios5 uiviewcontroller uinavigationcontroller