viewWillAppear vs. viewDidLoad


#1

The last paragraph in Section “Taking Pictures and UIImagePickerController” mentions:

This was based on the example of an image taken from a camera wiping off the previous view. I understand that initializing the values in viewWillAppear will indeed solve the issue. However, I was wondering if doing the same in viewDidLoad will also work? If yes, then I think using viewDidLoad will be more optimal because viewWillAppear may do the initialization even when it wasn’t really needed (i.e. the view wasn’t really destroyed)?