I am using Timer in containing app which i am displaying on widget (Today Extension).Now i have requirement that i can start and stop the timer from today extension If I start timer from today extension using on button click then it start and stop then stop.
同样的东西来自包含app.But两个一起工作意味着相互沟通。如果我从今天的延期停止,那么计时器也将停止包含应用程序与开始相同。
答案 0 :(得分:0)
您应该将代码放在某个后端类中,并且只从控制器中激活它。