开发者

Is it possible to switch a view without a button?

I got only so far to be able to switch a vi开发者_如何学Pythonew by pressing a button or with a timer. But I don't get it to switch a view by events like didReceiveLocalNotification. Is it impossible to do this?


Yes, that's possible , Because usually we specify the method with notification in which we wish to receive it.

Put the same code from your UIButton action: to notification method.


Yes, all you have to do is doing the switch inside the method didReceiveLocalNotification. You will need to send a message to the view controller you want to perform the switch.

0

上一篇:

下一篇:

精彩评论

暂无评论...
验证码 换一张
取 消

最新问答

问答排行榜