您的位置:首页 > 其它

iPhone开发基础之局部动画

2011-08-30 10:27 176 查看

//动画效果

[UIView beginAnimation:nil context:nil];

[UIView setAnimationDelegate:self];

[UIView setAnimationDidStopSelector:@selector(animationDidStop:finished:context:)];

[UIView commitAnimations];

//动画结束时的释放动作

-(void) animationDidStop:(NSString*)animationID finished:(NSNumber*)finished context:(void*)context

{

[subView removeFromSuperView];

[subView release];

subView=nil;

}
内容来自用户分享和网络整理,不保证内容的准确性,如有侵权内容,可联系管理员处理 点击这里给我发消息
标签: