【发布时间】:2014-03-23 23:15:13
【问题描述】:
点击暂停按钮后,我希望在用户点击屏幕之前显示一个标签。我该怎么做?
到目前为止我有这个
- (IBAction)ButtonPausePressed:(id)sender {
PauseLabel.hidden = false (//how do i make it only visible until user taps?//)
if (GameEnd != true){
if ([GameUpdate isValid]){
[GameUpdate invalidate];
[BirdUpdate invalidate];
}else{
BirdUpdate = [NSTimer scheduledTimerWithTimeInterval:0.015
target:self
selector:@selector(UpdateBird)
userInfo:nil
repeats:YES];
GameUpdate = [NSTimer scheduledTimerWithTimeInterval:0.025
target:self
selector:@selector(GameUpdate)
userInfo:nil
repeats:YES];
}
}
}
【问题讨论】:
-
使用
NSTimer来做
标签: objective-c cocoa-touch uilabel nstimer