I have a class which has UIImagePickerController and extends UIViewController. But viewWillAppear/viewDidAppear are not being called for this class. Why so?
I want viewWillAppear to be there so that when I come back to this view, I can make some change.
By coming back you mean coming back from
UIImagePickerControllerafter selecting image/media?If you want to display the image/media you selected from
UIImagePickerControllerin your view,you can make changes in the UIImagePickercontroller delegate method :
which gets called as soon as you select any image or media from imagePicker. You just need to set the delegate of imagePicker to the the class in which you want to display the images.