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.

Setting constraints programmatically

I'm experimenting with how to use UIScrollView. After much trouble, I finally got the hang of it. But now I've …

ios objective-c uiviewcontroller uiscrollview nslayoutconstraint
single function to dismiss all open view controllers

I have an app which is a single view application. I have a navigation controller linked up to all child …

ios swift uiviewcontroller dismiss
Present View Controller in Storyboard with a Navigation Controller - Swift

I am currently showing a viewController in my new storyboard below: var storyboard : UIStoryboard = UIStoryboard(name: AccountStoryboard, bundle: nil) var …

ios uiviewcontroller uinavigationcontroller swift uistoryboard
Custom Animation for Pushing a UIViewController

I want to show a custom animation when pushing a view controller: I would like to achieve something like an "…

iphone animation uikit uiviewcontroller uinavigationcontroller
How to change the UINavigationController back button name?

I have a UIViewController and I'm navigating from my first view controller to second view controller and I want to …

ios uiviewcontroller uinavigationcontroller uinavigationitem
Pass data back to previous viewcontroller

I am trying to pass data BACK TO previous viewController. Does anyone know how to pass data back from ViewController …

iphone ios objective-c uiviewcontroller
Current view controller from AppDelegate?

Is there a way to get the current view controller from the AppDelegate? I know there is rootViewController, but that's …

objective-c ios uiviewcontroller
How to allow only single UIViewController to rotate in both Landscape and Portrait direction?

My app is only for iphone device (both iphone 4 and 5) and built to support only ios 6. My whole app only …

iphone ios objective-c uiviewcontroller
How do I make a custom initializer for a UIViewController subclass in Swift?

Apologies if this has been asked before, I've searched around a lot and many answers are from earlier Swift betas …

swift uiviewcontroller initialization