¡@

Home 

2014/10/15 ¤U¤È 10:14:26

iphone Programming Glossary: startstop

How to Pause/Play NSTimer?

http://stackoverflow.com/questions/9975562/how-to-pause-play-nstimer

Try this shizzle... worked great for me EDIT To be honest my actual code is this IBAction clicked id sender if startStop.titleLabel.text isEqualToString @ Start startStop setTitle @ Pause forState UIControlStateNormal startStop setTitleColor.. To be honest my actual code is this IBAction clicked id sender if startStop.titleLabel.text isEqualToString @ Start startStop setTitle @ Pause forState UIControlStateNormal startStop setTitleColor UIColor redColor forState UIControlStateNormal timer.. sender if startStop.titleLabel.text isEqualToString @ Start startStop setTitle @ Pause forState UIControlStateNormal startStop setTitleColor UIColor redColor forState UIControlStateNormal timer NSTimer scheduledTimerWithTimeInterval 1.0 target self..