일정 시간 지연후 실행

ios 2016. 12. 19. 10:22
-(IBAction)buttonPressed:(UIButton *) sender {
[self performSelector:@selector(addCoins) withObject:nil afterDelay:30];
}

-(void)addCoins {
//put whatever code you want to happen after the 30 seconds
}


'ios' 카테고리의 다른 글

UILable 터치시 단어 가져오기  (0) 2017.06.30
json dictionary로 가져오기  (0) 2017.01.20
ios info.plist 권한수정  (0) 2016.12.01

WRITTEN BY
carbo

,