views:

31

answers:

1

In viewDidLoad do you put [super viewDidLoad] before or after your code? Is it the same for all other methods?

+2  A: 

Before. You want the super initialization to happen before yours, so that your code could rely on the super state.

As for the other methods - it depends whether you want your code to touch the parameters before calling the super method or it needs to process the result of it.

Franci Penov