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.

Display UIViewController as Popup in iPhone

Since there is no complete, definitive answer to this common recurring question, I'll ask and answer it here. Often we …

ios iphone uiviewcontroller popup uialertview
How to lock orientation of one view controller to portrait mode only in Swift

Since my app got support for all orientation. I would like to lock only portrait mode to specific UIViewController. e.…

swift uiviewcontroller portrait device-orientation
UIViewController viewDidLoad vs. viewWillAppear: What is the proper division of labor?

I have always been a bit unclear on the type of tasks that should be assigned to viewDidLoad vs. viewWillAppear: …

ios uiviewcontroller viewdidload viewwillappear
How to identify previous view controller in navigation stack

I have 2 seperate navigationcontrollers, one with RootViewController A and the other with RootViewController B. I am able to push ViewController …

objective-c ios uiviewcontroller uinavigationcontroller
How do I create a custom iOS view class and instantiate multiple copies of it (in IB)?

I am currently making an app that will have multiple timers, which are basically all the same. I want to …

ios xcode class uiview uiviewcontroller
Prevent segue in prepareForSegue method?

Is it possible to cancel a segue in the prepareForSegue: method? I want to perform some check before the segue, …

ios cocoa-touch uiviewcontroller storyboard segue
Access Container View Controller from Parent iOS

in iOS6 I noticed the new Container View but am not quite sure how to access it's controller from the …

ios objective-c swift uiviewcontroller uicontainerview
Programmatically change rootViewController of storyBoard

I have created my project using Storyboards. The root ViewController lies inside a Storyboard, I have not written a single …

ios uiviewcontroller storyboard
Container View Controller Examples

Can anyone point me to any good examples of creating a Custom View Controller as a Container View Controller? The …

objective-c ios uiviewcontroller ios5
How to use presentModalViewController to create a transparent view

I am displaying a modal view with [self presentModalViewController:controller animated:YES]; When the view moves up the screen it …

ios iphone uiviewcontroller