I have created a new project in xcode 4.5 and I have called my viewcontroller by
-(id)initWithNibName:bundle:
from appdelegate as it called in default project template and i am not using storyboard but awakeFromNib was not called I have also searched but not able to understand why awakeFromNib is not calling.
By apple documentation for -(void)awakeFromNib
"Prepares the receiver for service after it has been loaded from an Interface Builder archive, or nib file."
"Objects that conform to the NSCoding
protocol (including all subclasses of UIView and UIViewController) are initialized
using their initWithCoder: method. All objects that do not conform
to the NSCoding protocol are initialized using their init method. After all objects have been instantiated and
initialized, the nib-loading code reestablishes the outlet and action connections for all of those objects. It then
calls the awakeFromNib method of the objects."
My question is that Why awakeFromNib is not calling when xib file is loaded? Is i am doing something wrong?Please elaborate