My application is a view-based application. I have 3 view managers. (Main, sub, detail) Each viewcontroller has one UIView. MainViewcontroller has a subView start button. the method is as follows.
- (IBAction) LaunchSubView: (id) sender {
subViewcontroller *viewController = [[subViewcontroller alloc] init];
UIView *currentView = self.view;
[UIView transitionFromView:currentView
toView:viewController.view
duration:0.5
options:UIViewAnimationOptionTransitionFlipFromLeft
completion:^(BOOL finished){}];
}
While I am trying to build and analyze, I received this warning.
Potential diversion allocated in line 54 and stored in the 'viewController'
I tried [viewController release] after perehodaFromView method and subViewcontroller * viewController = [[[[ subViewcontroller alloc] init] autorelease]; in both cases, the cause of the application crash. any idea what should i do? Thanks in advance for any help. =)
source
share