Hello,
I'm trying to do some initialization code in my view controller when it's view is added as a subview to the main window. I actually have been programming for iPhone and am use to just using the viewDidLoad method. I looked at the initWithNibName:nibOrBil bundle: nibBundleOrNil but really need a method that is called when the view is loaded like the viewDidLoad method in UIKit. Would the best way to accomplish this be through NSNotificationCenter? Any help would be greatly appreciated.
Thanks in advance.
I'm trying to do some initialization code in my view controller when it's view is added as a subview to the main window. I actually have been programming for iPhone and am use to just using the viewDidLoad method. I looked at the initWithNibName:nibOrBil bundle: nibBundleOrNil but really need a method that is called when the view is loaded like the viewDidLoad method in UIKit. Would the best way to accomplish this be through NSNotificationCenter? Any help would be greatly appreciated.
Thanks in advance.