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 }
我有一个表,其中有一列名为itemCount,我想选择前 n 行,而SUM(itemCount)小于y.
itemCount
SUM(itemCount)
y
+----+-----------+ | id | itemCount | +----+-----------+ | 1 | 5 | | 2 | 10 | |