On 18.12.2016 at 01:19 David Duncan wrote:
>> When I disable the line "[vc release]", I don't get any crashes and it
>> works fine. Can anybody explain why? I was expecting that
>> presentViewController()
>> retained the view controller so that it is safe for me to release it
>> right after makin
> 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
that release.
Steve via iP
> 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];
>
>vc.modalPresentationSt
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 = CGRec