【发布时间】:2011-05-27 19:50:28
【问题描述】:
如何让 cocos2d 的日程选择器只做一次?现在我能做的最好的就是:
[self schedule:@selector(eventHappend:) interval:2];
和eventHappend:
- (void)eventHappend: (ccTime) dt
{
[self unschedule:@selector(eventHappend:)];
// Do stuff
}
但这似乎是一种解决方法……有没有一种方法可以只安排一次?
【问题讨论】:
标签: cocos2d-iphone