Difference between viewDidAppear, viewDidLoad in iPhone/iOS? [duplicate]
问题 This question already has answers here : Difference between viewDidLoad and viewDidAppear (2 answers) Closed last year . Bottom line is, I've been working on an app, and it seems that if I place a UIAlert in viewDidLoad , it gets called twice (from a delegate method of UIImagePickerController ). If I put it in viewDidAppear , it gets called once. I've looked through documentation but it just confuses me. 回答1: A UIView object can get loaded into memory and released multiple times without ever