Are there any guidelines for using these methods in the right manner? In particular, I would like to know what type of code I could use inside them.
For example, if I have to call a method that retrieves data from a WS, where do I have to call it? Where can I register/unregister a NSNotification? etc.
From UIViewController
viewWillAppear:
viewWillDisappear:
viewDidAppear:
viewDidDisappear:
For further information you may check View Controller Programming Guide for iOS