awakeFromNib
is called when the controller itself is unarchived from a nib. viewDidLoad
is called when the view is created/unarchived. This distinction is especially important when the controller’s view is stored in a separate nib file.
Related Contents:
- How to get the screen width and height in iOS?
- Have a reloadData for a UITableView animate when changing
- What are best practices for validating email addresses on iOS 2.0
- Fix warning “Capturing [an object] strongly in this block is likely to lead to a retain cycle” in ARC-enabled code
- How to make completely transparent navigation bar in iOS 7
- What is the entry point of swift code execution?
- UITableViewCell with UITextView height in iOS 7?
- Get underlying NSData from UIImage
- Storing custom objects in an NSMutableArray in NSUserDefaults
- Is it possible to prevent an NSURLRequest from caching data or remove cached data following a request?
- What is the most robust way to force a UIView to redraw?
- How to zoom in/out an UIImage object when user pinches screen?
- Programmatically send to front/back elements created from interface builder
- How to Convert UIImage to CIImage and vice versa
- How can I tell a UIGestureRecognizer to cancel an existing touch?
- UILabel UITextField UITextView
- UIView — “user interaction enabled” false on parent but true on child?
- How to get notified when scrollToRowAtIndexPath finishes animating
- Animate intrinsicContentSize changes
- Persisting Cookies In An iOS Application?
- How can I customize the accessory disclosure image in a UITableViewCell?
- How can I display a splash screen for longer on an iPhone?
- How to print out the method name and line number and conditionally disable NSLog?
- Cocoa Touch: How To Change UIView’s Border Color And Thickness?
- How to save picture to iPhone photo library?
- How do you dismiss the keyboard when editing a UITextField
- Creating a UICollectionView programmatically
- UILabel – Wordwrap text
- How do I wrap text in a UITableViewCell without a custom cell
- Change the font of a UIBarButtonItem
- Understanding NSRunLoop
- iPhone viewWillAppear not firing
- iPhone OS: How do I create an NSDate for a specific date?
- UITableView example for Swift
- UIView shake animation
- How to disable/enable the return key in a UITextField?
- How do I define constant values of UIColor?
- Disable UITextField keyboard?
- UICollectionView align logic missing in horizontal paging scrollview
- How to push two view controllers but animate transition only for the second one?
- Best Cocoa/Objective-C Wrapper Library for SQLite on iPhone [closed]
- creating custom tableview cells in swift
- Showing/hiding navigation bar with smooth animation
- What is the best way to enter numeric values with decimal points?
- Assertion failure in UITableView configureCellForDisplay:forIndexPath:
- How do you duplicate a file in XCode?
- UITableView does not automatically deselect the selected row when the table re-appears
- Supporting Open In… menu item in my app for iOS Mail And Safari
- How to disable touch input to all views except the top-most view?
- Multiline UILabel with adjustsFontSizeToFitWidth