When a view controller is being initialized, inside the initWithNibName method, the views that reside in the view controller aren’t yet initialized and you can’t set their properties yet. Do whatever you need that is view based in the “viewDidLoad” method.
More Related Contents:
- Exec Bad access while scrolling uitableview
- Pass data back to previous viewcontroller
- dismissModalViewController AND pass data back
- Animate change of view controllers without using navigation controller stack, subviews or modal controllers?
- Display clearColor UIViewController over UIViewController
- Storyboard – refer to ViewController in AppDelegate
- How to allow only single UIViewController to rotate in both Landscape and Portrait direction?
- In iOS6, trouble forcing ViewController to certain interfaceOrientation when pushed on stack
- Removing viewcontrollers from navigation stack
- UILabel updating stops during scrolling UIScrollView
- Get the current displaying UIViewController on the screen in AppDelegate.m
- CAGradientLayer, not resizing nicely, tearing on rotation
- Dismissing a Presented View Controller
- Xcode/iOS5: Move UIView up, when keyboard appears
- “Pushing the same view controller instance more than once is not supported” exception
- Am I abusing UIViewController Subclassing?
- How can I manually switch between UIViewControllers in storyboard?
- My app working in iphone 5 but not in 3 why? [closed]
- UIImage: Resize, then Crop
- Change iOS app’s language on the fly
- Autorotate in iOS 6 has strange behaviour
- How to get the pixel color on touch?
- Want to display a 3D model on the iPhone: how to get started? [closed]
- Is there a way to toggle bluetooth and/or wifi on and off programmatically in iOS?
- How to post more parameters with image upload code in iOS?
- What does the -ObjC linker flag do?
- iOS 4.2 – Return to app after phone call
- List saved files in iOS documents directory in a UITableView?
- Strange issue after upgrading to iOS 4.1 SDK
- Replace icon pin by text label in annotation?