Saturday, April 7, 2012

presentModalViewController prevents release of other view controllers

Not totally sure what's going on, but I have a split view with a control panel on the left and a detail panel on the right. I have a situation where I want to clear the detail panel and then popup a modal view controller. However, it looks like the modal view controller is somehow causing another retain to be added to the view controller in the detail panel, and then it never releases it.

If I clear the detail panel AFTER calling presentModalViewController, then the detail panel view controller is cleared normally.

No comments:

Post a Comment