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.

How to execute some code after a segue is done?

Is it possible in iOS 6 to know when a UIStoryboardSegue has finished its transition? Like when i add a UIStoryboardSegue …

ios ios6 uiviewcontroller segue uistoryboardsegue
How to dismiss 2 view controller in swift ios?

How to dismiss 2 view controllers in Swift iOS? Below is my code. @IBAction func backButtonTapped(sender: AnyObject) { self.presentingViewController .presentingViewController .…

ios swift uiviewcontroller dismissviewcontroller
Guidelines for viewWillAppear, viewDidAppear, viewWillDisappear, viewDidDisappear

Are there any guidelines for using these methods in the right manner? In particular, I would like to know what …

objective-c ios uiviewcontroller viewwillappear viewdidappear
UIViewControllerHierarchyInconsistency when trying to present a modal view controller

Trying to present a modal view controller with the following code MapViewController *mapView = [[MapViewController alloc] initWithNibName:@"MapViewController" bundle:nil]; mapView.…

ios objective-c xcode uiviewcontroller xib
How to programmatically set the current page for UIPageControl?

I have 3 "pages" (page 0, page 1, page 2) in a UIScrollView that are snapped to by finger swipes. There is a UIPageControl …

iphone xcode uiviewcontroller uiscrollview uipagecontrol
Leaking views when changing rootViewController inside transitionWithView

While investigating a memory leak I discovered a problem related to the technique of calling setRootViewController: inside a transition animation …

ios cocoa-touch uiviewcontroller core-animation
iOS storyboard - Disable status bar on storyboard once

Is there a way in Xcode when using the Storyboard in the Interface Builder to disable the status bar completely, …

ios xcode uiviewcontroller xcode-storyboard
CAGradientLayer, not resizing nicely, tearing on rotation

I'm trying to get my CAGradientLayers, that i'm using to create nice gradient backgrounds, to resize nicely on rotation and …

iphone ios objective-c uiviewcontroller cagradientlayer
Transparent ViewController to See Parent Below?

I would like to modally add a view controller with a transparent background, so the parent view controller beneath can …

iphone objective-c uiviewcontroller transparency
pushviewcontroller animation is slow/choppy

I push a ViewController which contains not too many views, UIScrollView which contains 10 views inside, I have a singleton ViewController …

uiviewcontroller uinavigationcontroller pushviewcontroller