iphone - how can I get animation when going to previous view -


i have used viewcontroller multiple view. when go previous, there no animation have tried below lines of code ,

-(ibaction)goback { [uiview beginanimations:nil context:null];  [uiview setanimationduration:1];  [uiview setanimationtransition: uiviewanimationtransitioncurldown forview:self.view cache:yes];  [self.view removefromsuperview];   [uiview commitanimations]; } 

you can't animate method call. can animate properties of view such frame, size, alpha etc. removefromsuperview isn't property, method finds superview , removes originating view array of subviews.

you need run animation , send removefromsuperview when animation completes.


Comments

Popular posts from this blog

Delphi Wmi Query on a Remote Machine -