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.

Passing Data between View Controllers

I'm new to iOS and Objective-C and the whole MVC paradigm and I'm stuck with the following: I have a …

ios objective-c swift model-view-controller uiviewcontroller
Instantiate and Present a viewController in Swift

Issue I started taking a look of the new Swift on Xcode 6, and I tried some demo projects and tutorials. …

ios objective-c swift uiviewcontroller
How to tell if UIViewController's view is visible

I have a tab bar application, with many views. Is there a way to know if a particular UIViewController is …

ios uiview uiviewcontroller uiwindow
Looking to understand the iOS UIViewController lifecycle

Could you explain me the correct manner to manage the UIViewController lifecycle? In particular, I would like to know how …

ios uiviewcontroller xamarin.ios lifecycle
iOS - Calling App Delegate method from ViewController

What I am trying to do is click a button (that was created in code) and have it call up …

ios objective-c uiviewcontroller appdelegate
Changing the Status Bar Color for specific ViewControllers using Swift in iOS8

override func preferredStatusBarStyle() -> UIStatusBarStyle { return UIStatusBarStyle.LightContent; } Using the above code in any ViewController to set the statusBar …

swift uiviewcontroller ios8 xcode6 statusbar
Programmatically navigate to another view controller/scene

I got an error message during navigating from first view controller to second view controller. My coding is like this …

ios swift uiviewcontroller uinavigationcontroller xcode6
Present and dismiss modal view controller

Can anyone give me the example code that I can use to first present a modal view controller, then dismiss …

ios objective-c uiviewcontroller modal-view
How to find topmost view controller on iOS

I've run into a couple of cases now where it would be convenient to be able to find the "topmost" …

ios objective-c uiview uiviewcontroller uikit
How to set Status Bar Style in Swift 3

I'm using Xcode 8.0 beta 4. In previous version, UIViewController have method to set the status bar style public func preferredStatusBarStyle() -&…

ios swift uiviewcontroller uistatusbar ios-statusbar