Re: Releasing modal view controller properly

2016-12-17 Thread Steve Mills
> On Dec 17, 2016, at 18:19, David Duncan wrote: > > MyViewController *vc = [[MyViewController alloc] init]; What if you store that in a property of an object that persists as long as the window does? I'm guessing it's being deallocated before you think because of

Re: Releasing modal view controller properly

2016-12-17 Thread David Duncan
> On Dec 17, 2016, at 8:07 AM, Andreas Falkenhahn > wrote: > > I'm not using ARC so I need to take care of releasing objects manually. > I'm creating and presenting a modal UIViewController like this: > >MyViewController *vc = [[MyViewController alloc] init]; > >

Releasing modal view controller properly

2016-12-17 Thread Andreas Falkenhahn
I'm not using ARC so I need to take care of releasing objects manually. I'm creating and presenting a modal UIViewController like this: MyViewController *vc = [[MyViewController alloc] init]; vc.modalPresentationStyle = UIModalPresentationFormSheet; vc.preferredContentSize =