Find centralized, trusted content and collaborate around the technologies you use most.
Teams
Q&A for work
Connect and share knowledge within a single location that is structured and easy to search.
请帮我摆脱这些家伙。任何建议将不胜感激。
很简单,将NSTimer放置 24 小时。一旦定时器触发,请打开该按钮。给你的时间间隔。
[NSTimer scheduledTimerWithTimeInterval:300 target:self selector:@selector(timerFireMethod:) userInfo:nil repeats:YES];
火法:-
- (void) timerFireMethod:(NSTimer *) theTimer { //Write Your Code Here }