开发者

UIModalTransitionStyleFlipHorizontal

开发者 https://www.devze.com 2023-01-15 07:01 出处:网络
When using the above, it scrolls the new view vertically up the screen, and dismisses it by scrolling the view down the screen. Why is this, and how do I overcome this? (Especially since it should be

When using the above, it scrolls the new view vertically up the screen, and dismisses it by scrolling the view down the screen. Why is this, and how do I overcome this? (Especially since it should be a horizontal animation)

My code is as follows:

- (IBAction)infoButtonPressed:(id)sender {
InfoViewController *infoViewController = [[InfoView开发者_运维问答Controller alloc] initWithNibName: @"DAandPAInfo" bundle: [NSBundle mainBundle]];
self.modalTransitionStyle = UIModalTransitionStyleFlipHorizontal;
[self presentModalViewController: infoViewController animated: YES];
[infoViewController release];

}


I realised my mistake.

infoViewController.modalTransitionStyle = ...
0

精彩评论

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

关注公众号