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