开发者

How do I uncurl after a partial curl animation?

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];
0

上一篇:

下一篇:

精彩评论

暂无评论...
验证码 换一张
取 消

最新问答

问答排行榜