Possible Duplicate:
[super viewDidLoad] convention
Does it make a difference where I put [super viewDidLoad] within the viewDidLoad in my UIViewController? I.e., should it go at the beginning (before my code to set up the UIViewController) or the end )after my code to set up the UIViewController) of the method, or does it not make any difference?
You should usually call super as early as possible. Otherwise, the superclass may interfere with your own implementation. Let’s say
UIViewControllerwould set a default background color inviewDidLoad(it doesn’t): if you’d set your own background color in your method and then call super, it would be reset to the default color which could lead to confusion.