views:

72

answers:

1

hi, there is a method called viewDidLoad that execute a code when the view is loaded is there a method that do the samething but each time the view is shown?

+8  A: 

Use viewWillAppear or viewDidAppear.

DyingCactus
@Chris, thanks for adding the links. The docs are always a good place to start looking.
DyingCactus
This may be obvious but...viewWillAppear: the view has not yet been added to the window, good place to add subviews.viewDidAppear: the view has already been added to the window.
christo16