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.

Adding a view controller as a subview in another view controller

I have found few posts for this problem but none of them solved my issue. Say like I've.. ViewControllerA ViewControllerB …

ios swift uiviewcontroller
Removing viewcontrollers from navigation stack

I have a navigation stack, with say 5 UIViewControllers. I want to remove the 3rd and 4th viewcontrollers in the stack …

iphone ios uiviewcontroller uinavigationcontroller
iOS: present view controller programmatically

I'm using the presentViewController:animated:completion: method to go to another view controller. This is my code: AddTaskViewController *add = [[AddTaskViewController …

ios objective-c uiviewcontroller uistoryboard presentviewcontroller
presentViewController and displaying navigation bar

I have a view controller hierarchy and the top-most controller is displayed as a modal and would like to know …

ios iphone uiviewcontroller modalviewcontroller presentmodalviewcontroller
Given a view, how do I get its viewController?

I have a pointer to a UIView. How do I access its UIViewController? [self superview] is another UIView, but not …

ios iphone debugging uiview uiviewcontroller
Storyboard - refer to ViewController in AppDelegate

consider the following scenario: I have a storyboard-based app. I add a ViewController object to the storyboard, add the class …

iphone objective-c ios uiviewcontroller storyboard
How to add an UIViewController's view as subview

Note to googlers, this Q-A is now six years out of date! As Micky below and others mention, this is …

iphone uiview uiviewcontroller
How can I switch views programmatically in a view controller? (Xcode, iPhone)

Have been struggling with this for a while, and can never seem to get a direct answer. Any help is …

swift uiviewcontroller swift3 storyboard
Move UIView up when the keyboard appears in iOS

I have a UIView, it is not inside UIScrollView. I would like to move up my View when the keyboard …

objective-c ios xcode uiview uiviewcontroller
How to check if a view controller is presented modally or pushed on a navigation stack?

How can I, in my view controller code, differentiate between: presented modally pushed on navigation stack Both presentingViewController and isMovingToParentViewController …

ios objective-c swift uiviewcontroller uinavigationcontroller