I have a ViewController that calls viewWillAppear and viewDidAppear without calling viewDidLoad. How can this be?
Asked
Active
Viewed 653 times
3
-
swift or objective-c? – Daedelus Nov 18 '14 at 10:13
-
My ViewController is written in Swift – YogevSitton Nov 18 '14 at 10:22
-
You can call viewDidLoad method like that self.viewDidLoad() but it should be called when your view loaded. – Daedelus Nov 18 '14 at 10:35
-
yeah - that's exactly my problem - it's not :) – YogevSitton Nov 18 '14 at 12:16
-
Did you find a solution? I'm having this problem in testing with ios 6 but not ios 7 and 8. – ScottyB Mar 05 '15 at 03:32
-
I am facing same issue. – Umair Afzal Aug 11 '20 at 09:20