Project showing problems with call to viewWillDisappear and viewDidDisappear when presenting a modal view controller from AppDelegate