UISplitViewController, presented modally, never released

I have a UISplitViewController in a separate storyboard. I am an iPhone just now, iOS 8+, and made it work so that it works when I create an iPad version.

From my main storyboard and simple UINavigationController / UIViewController, I present modulo splitViewController. When I quit, neither my split, nor primary, nor secondary viewControllers are freed (there are no console logs from dealloc).

According to the View Controller Directory , as of 2014-11-15:

Split image controllers cannot be represented modally.

But the actual documentation of the UISplitViewController , as of 2015-06-08, does not mention this limitation.

Xcode does not give me any warnings about the UISplitViewController view. So, assuming this is an acceptable precedent, how can I ensure that everything is destroyed properly when it is rejected?

+4
source share
1 answer

I recently ran into exactly the same problem - the UISplitViewController is never freed up if it is rejected after it is presented modally.

, , MGSplitViewController, iOS 8 - https://github.com/asprega/MGSplitViewController

, UISplitViewController, ! (, , ...)

0

Source: https://habr.com/ru/post/1608376/


All Articles