开发者

Animation on view

i have 2 toolbar one at top and another at bottom in between of these two i have a webview and i apply a turn page animation on it. But my problem is that on Animation both tool bar are also move with them how can i stop toolbar animation.only webview is animated

Thanks

[UIView beginAnimations:nil context:NULL]; [UIView setAnimationDuration:1];//0.3]; [UIView setAnimationDelegate:self]; [UIView setAnimationTransition:UIViewAnimationTransitionCurlU开发者_C百科p forView:self.view cache:NO];


From your description, I think you are applying the animation on your main view (which contains the toolbars and the web view) and not on the web view only.

Post some code that might make things clearer.

EDIT:

Like i said you have applied the animation to your main view 'self.view' instead of your web view and hence the entire view is being animated..

[UIView setAnimationTransition:UIViewAnimationTransitionCurlUp forView:self.view cache:NO];

instead try applying it to your web view:

[UIView setAnimationTransition:UIViewAnimationTransitionCurlUp forView:self.myWebView cache:NO];
0

上一篇:

下一篇:

精彩评论

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

最新问答

问答排行榜