使用Pushviewcontroller自下而上的动画? [英] bottom up animation using Pushviewcontroller?

查看:58
本文介绍了使用Pushviewcontroller自下而上的动画?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我是Iphone SDK的新手.我正在使用以下代码.但是动画发生了 当我单击此按钮时,从右到左.我想将波顿从上移到上

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仅支持两个... 1)UIViewAnimationTransitionFlipFromLeft 2)UIViewAnimationTransitionFlipFromRight .. 有什么帮助吗?我用下面的方法,但是不起作用

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

settingsController.modalTransitionStyle =  UIModalTransitionStyleCoverVertical;
[self.navigationController pushViewController:settingsController animated:YES];

推荐答案

您正在寻找的是

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

这篇关于使用Pushviewcontroller自下而上的动画?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆