ios - Add and decrease time with UIButton to Timer -


Hi everyone, I have a question that how can I add and subtract time with UIButton for example, for example if I will put a button with zero and plus and time on the timer

Thank you.

  - (zero) viewDidoad {UIButton * buttonPlus = [with UIButton Button: UIButtonTypeRoundedRect] ; UIButton * Button Menu = [System With UIButton Button: UIButtonTypeRoundedRect]; [ButtonPlugas addTarget: Self-Proceeding: @Selector (for standtime events): UIControlEventTouchUpInside]; [Button middle addTarget: self-action: @Selector (remove time) for control events: UIControlEventTouchUpInside]; [Self.view addSubview: Buttonmen]; [Self.view addSubview: buttonplus]; } - (zero) adtime {[yourTimer setFireDate: [[Your timer's forward date] DateBudding TimeInternval: Secondsad]]; } - (zero) time to remove {[yourTimer setFireDate: [[your timer's forward date] datebeding timeInternval: -secondaid]]; }    

Comments

Popular posts from this blog

php - PDO bindParam() fatal error -

logging - How can I log both the Request.InputStream and Response.OutputStream traffic in my ASP.NET MVC3 Application for specific Actions? -

java - Why my included JSP file won't get processed correctly? -