Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

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 =  UIModalTransitionStyleCoverVertical;
[self.navigationController pushViewController:settingsController animated:YES];
like image 233
senthilM Avatar asked Oct 24 '09 11:10

senthilM


1 Answers

What you're looking for is

- (void)presentModalViewController:(UIViewController *)modalViewController animated:(BOOL)animated;
like image 94
Jasarien Avatar answered Oct 05 '22 22:10

Jasarien