presentingViewController is nil when using presentViewController:animated:completion: in iOS 8

Had a similar issue with iOS 8, where presentingController is nil when checking the value in viewDidLoad.

When viewDidLoad is called, there is no guarantee that the view controller hierarchy is loaded in the navigation tree. Moving the logic to a later stage (for example: viewWillAppear) should resolve that issue as presentingController should be loaded by then.

Leave a Comment

Hata!: SQLSTATE[HY000] [1045] Access denied for user 'divattrend_liink'@'localhost' (using password: YES)