摘要: Timers的替代方法如果只是要延迟消息的发送,可以使用NSObject的方法- (void)performSelector:(SEL)aSelectorwithObject:(id)anArgumentafterDelay:(NSTimeInterval)delay- (void)performSelectorOnMainThread:(SEL)aSelectorwithObject:(id)argwaitUntilDone:(BOOL)wait+ (void)cancelPreviousPerformRequestsWithTarget:(id)aTarget创建Timer的三种方法sch 阅读全文
posted @ 2013-03-26 21:47 ubersexual 阅读(488) 评论(0) 推荐(0) 编辑
摘要: 方法一: 利用iOS提供的4种视图转换类型:UIViewAnimationTransitionFlipFromLeftUIViewAnimationTransitionFlipFromRightUIViewAnimationTransitionCurlUpUIViewAnimationTransitionCurlDown1 MainView *nextView=[[MainView alloc] init]; 2 [UIView beginAnimations:nil context:NULL]; 3 [UIView setAnimationCurve:UIViewAnimationC... 阅读全文
posted @ 2013-03-26 21:24 ubersexual 阅读(2772) 评论(0) 推荐(0) 编辑