Home:ALL Converter>Application Crashes When Dismissing Modal View Controller

Application Crashes When Dismissing Modal View Controller

Ask Time:2014-07-21T18:50:37         Author:Sepehrom

Json Formatter

There's somewhere in my app that I dismiss ModalViewController and it causes app to crash with the following log :

-[UINavigationController _computeAndApplyScrollContentInsetDeltaForViewController:]: message sent to deallocated instance 0x5c92640

Can anybody help me finding what the problem is please ? Any suggestion's really appreciated.

P.S: Here's the full scenario : My app presents a Modal View Controller when it receives some kind of notifications ( Incoming call request ), and if the call is being ended before user accept or reject the call, the view controller is being dismissed automatically. However this is what happens in foreground. When the app is in background, if the call end before user enter the app, that "Automatically dismissing view controller" causes this crash.

Author:Sepehrom,eproduced under the CC 4.0 BY-SA copyright license with a link to the original source and this disclaimer.
Link to original article:https://stackoverflow.com/questions/24863299/application-crashes-when-dismissing-modal-view-controller
yy