I'm trying to use UISplitViewController for an iPhone + iPad App.
The Master is a Menu, when one entry is selected, the Detail shows a ViewController for the selected entry.
On iPad, this works as expected.
On iPhone however (and also on iPad in compact width), the first DetailViewController leaks ans is never deallocated.
I've confirmed with the memory graph instrument that on iPad / Regular Width, there is always only 1 instance of DetailViewController alive, but on iPhone / Compact Width there are always 2 instances of DetailViewController alive.
I have put together a minimal sample project that shows this issue here https://github.com/iv-mexx/uisplitviewcontroller-memoryleak
The Master is a Menu, when one entry is selected, the Detail shows a ViewController for the selected entry.
On iPad, this works as expected.
On iPhone however (and also on iPad in compact width), the first DetailViewController leaks ans is never deallocated.
I've confirmed with the memory graph instrument that on iPad / Regular Width, there is always only 1 instance of DetailViewController alive, but on iPhone / Compact Width there are always 2 instances of DetailViewController alive.
I have put together a minimal sample project that shows this issue here https://github.com/iv-mexx/uisplitviewcontroller-memoryleak