MapViewController *MapView = [self.storyboard instantiateViewControllerWithIdentifier:@"MapView"]; [self presentModalViewController:MapView animated:YES]; [MapView release];
[self dismissModalViewControllerAnimated:YES];
If possible, please attach a sample application and exact steps to reproduce issue so I can look into.
Regards,
Nimesh
.
- there is a logout button .. if the user click it the application will crash ..
and that's it ..
Thank you in advance ..
It's crashing because you are over releasing. Just comment out [MapView release]; as below and it should work. Also, you should convert your project to ARC so you won't have to worry about memory management.
- (IBAction)btn_login_Clicked:(id)sender
{
MapViewController *MapView = [self.storyboard instantiateViewControllerWithIdentifier:@"MapView"];
[self presentViewController:MapView animated:YES completion:^
{
NSLog(@"Login Finished");
}
];
//[MapView release];
}
Regards,
Nimesh