How can I make a timer that change the properties of a UIButton from hidden to show, and from show to hidden alternating between 4 buttons?
I'm using xCode 4.4
Thanks!
How can I make a timer that change the properties of a UIButton from hidden to show, and from show to hidden alternating between 4 buttons?
I'm using xCode 4.4
Thanks!
NSTimer *aTimer = [NSTimer scheduledTimerWithTimeInterval: 2.0
target: self
selector:@selector(onTick:)
userInfo: nil repeats:YES];
And, onTick method should look like this
-(void)onTick:(NSTimer *)timer {
//This is where you need to set your button hidden property.
}
Check this link out.It's well detailed.