Every time I present my new viewcontroller (as property in presenter vc) as show below:
if(self.viewController) [self.viewController release];
self.viewController = [[ViewController alloc] init];
[self presentModalViewController:self.viewController animated:YES];
so I’m always guaranteed to get a new instance of object (if the object already exists).
But now I use ARC and don’t have any ideas how to send my object release message (because is not work with ARC)
Can you help me with this issues?
PS: Every time when I present gameVC I need an new instance of the object.
Thanks all!
the above code will always presents a new vc and apple’s compiler will take care of the release.
But if you think the above have some problem(which is a myth) then you can do also like this