How do I uncurl after a partial curl animation?

2019-05-26 20:09发布

I am doing a 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?

4条回答
姐就是有狂的资本
2楼-- · 2019-05-26 20:49

Also you can try to tap on left top corner with part of curl page to automatically dismiss view controller.

查看更多
爱情/是我丢掉的垃圾
3楼-- · 2019-05-26 21:01

Information for > ios 6.0:
dismissModalViewControllerAnimated is deprecated now.

The new method it´s without "modal", looks like that:

[self dismissViewControllerAnimated:YES completion:nil];
查看更多
相关推荐>>
4楼-- · 2019-05-26 21:05

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];
查看更多
三岁会撩人
5楼-- · 2019-05-26 21:07
-(IBAction)backClicked{
    [self dismissModalViewControllerAnimated:YES];
}
查看更多
登录 后发表回答