摘要: areAnimationsEnabled返回一个布尔值表示动画是否结束。+ (BOOL)areAnimationsEnabled返回值如果动画结束返回YES,否则NO。beginAnimations:context:开始一个动画块+ (void)beginAnimations:(NSString *)animationID context:(void *)context参数animationID动画块内部应用程序标识用来传递给动画代理消息-这个选择器运用setAnimationWillStartSelector:和setAnimationDidStopSelector: 方法来设置。conte 阅读全文
posted @ 2013-02-09 10:57 diablo大王 阅读(462) 评论(0) 推荐(0) 编辑
摘要: 1 UIView *containerView = [[[UIView alloc] initWithFrame:CGRectMake(20, 20, 280, 300)] autorelease];2 containerView.backgroundColor = [UIColor clearColor];3 containerView.layer.shadowOffset = CGSizeMake(0, 2);4 containerView.layer.shadowOpacity = 0.80; 阅读全文
posted @ 2013-02-09 10:24 diablo大王 阅读(6280) 评论(0) 推荐(0) 编辑
摘要: 1 - (void)fadeMe { 2 [UIView animateWithDuration:1.0 animations:^{ 3 fadeMeView.alpha = 0.0f; // 作用在fadeMeView视图 4 }]; 5 } 6 7 - (void)moveMe { 8 [UIView animateWithDuration:0.5 animations:^{ 9 moveMeView.center = CGPointMake(moveMeView.center.x , mo... 阅读全文
posted @ 2013-02-09 10:16 diablo大王 阅读(14562) 评论(0) 推荐(0) 编辑