Count-Up Timer Required, iPhone Programming

后端 未结 2 2000
遇见更好的自我
遇见更好的自我 2021-01-17 04:52

I am new to iPhone programming so am hoping someone can help me out here. I have searched the web, but can only find information on count down timers.

What I am look

2条回答
  •  野的像风
    2021-01-17 05:41

    There's no difference between an up-counter and down-counter. Just change the order of your subtraction.

    UpcounterElapsedTime = UpcounterCurrentTime - UpcounterStartTime;
    DowncounterElapsedTime = DownCounterStartTime - DownCounterCurrentTime;
    

提交回复
热议问题