简单的Animation实现方法

简单地说 就是
[UIView animateWithDuration:#时间#
                                      delay:#延迟#
                                     option:#选项#
                                animation:#block写各种最终的实现效果#
                              completion:#一般用nil#];
就可以!
API:
+ (void)animateWithDuration:
(NSTimeInterval)duration
delay:(NSTimeInterval)delay
option:(UIViewAnimationOptions)options
animation:(void (^)void)animations
completion:(void (^)(BOOL finished))completion
详见 http://www.tuicool.com/articles/3aaI73

评论

此博客中的热门博文

使__attribute__((annotate("xxx")))能作用于OC函数

viewWillAppear不执行的解决办法

iOS中使用xpc/xpc.h