I am doing a 开发者_JAVA百科partial page curl in this way:
- (IBAction)settings:(id)sender {
Settings *go = [[[Settings alloc] initWithNibName:@"Settings" bundle:nil] autorelease];
go.modalTransitionStyle = UIModalTransitionStylePartialCurl;
[self presentModalViewController:go animated:YES];
}
How do I uncurl this animation?
-(IBAction)backClicked{
[self dismissModalViewControllerAnimated:YES];
}
Just dismiss the modal view controller as you always do. iOS will take care of the transition as you have already specified the modalTransitionStyle.
[self dismissModalViewControllerAnimated:YES];
Also you can try to tap on left top corner with part of curl page to automatically dismiss view controller.
Information for > ios 6.0:
dismissModalViewControllerAnimated is deprecated now.
The new method it´s without "modal", looks like that:
[self dismissViewControllerAnimated:YES completion:nil];
精彩评论