开发者

bottom up animation using Pushviewcontroller?

I am new to Iphone SDK.i am using following code.but the animation happens from Right to Left when i click this button.i want to do fro botton to Up

- (IBAction)clickedsButton:(id)sender
{
    [UIView beginAnimations:nil context:NULL];
    [UIView setAnimationDuration:1.0];
    [UIView setAnimationDuration:0.75];
    [self.navigationController pushViewController:settingsController animated:TRUE];
    [UIView commitAnimations];
}

setAnimationTransition supports only Two ... 1)UIViewAnimationTransitionFlipFromLeft 2) UIViewAnimationTransitionFlipFromRight.. any help please? i used following, but it is not working

settingsController.modalTransitionStyle =  UIModalTransitio开发者_如何学CnStyleCoverVertical;
[self.navigationController pushViewController:settingsController animated:YES];


What you're looking for is

- (void)presentModalViewController:(UIViewController *)modalViewController animated:(BOOL)animated;


SWIFT 3

self.present(newViewController, animated: true, completion: nil)
0

上一篇:

下一篇:

精彩评论

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

最新问答

问答排行榜