views:

469

answers:

1

hi, 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];
+1  A: 

What you're looking for is

- (void)presentModalViewController:(UIViewController *)modalViewController animated:(BOOL)animated;
Jasarien
i want to do that,through PUSHVIEWCONTROLLER only.because i had usedpopviewcontroller in that next view controller(settingsController)will presentModalViewController support popviewcontroller....
Mikhail Naimy
the opposite to presentModalViewController:animated: is dismissModalViewController:animated:
Jasarien
It is an Apple intention that popViewController is animated from right to left. It enforces user interaction design, and you should be following Apple's Human Interface Guidelines. The animation from bottom to top is for modal views.
Jasarien
I'm not wrong. Everything I said was 100% correct. Just because you CAN do something, doesn't mean you SHOULD. Either way, congrats on finding a solution.
Jasarien