NSTimer *timer = [NSTimer timerWithTimeInterval:2 target:self selector:@selector(someAction) userInfo:nil repeats:YES];
[[NSRunLoop mainRunLoop] addTimer:timer forMode:NSRunLoopCommonModes];
解决定时器在主线程不工作的问题
原文:http://www.cnblogs.com/jukaiit/p/5210976.html