从日历返回到我的应用程序
Going back from Calendar to my app
我是我的应用程序,我在给定时间有这个代码:
UIApplication.sharedApplication().openURL(NSURL(string: "calshow://")!)
这会将您带到设备的日历。怎么回到那行执行的场景?
谢谢。
编辑:
按主页(option+shift+h,因为我的 iOS 模拟器中没有显示框架)会带你回到主页,而不是应用程序,它应该是。
引自this:
Unlike other platforms such as Android, iPhone does not create a stack of actions (back stacking on Android). What this means is that if you do decide to launch another application, your application will not resume when the user exits from the application you opened.
如果用户想要返回您的应用,他们应该按两次主页 (option+shift+H),然后 select 从列表中选择您的应用。
iOS9 在左上角引入了一个新的 "Back-To-App" 按钮,可让您返回到您的应用程序。在您的应用中显示日历后,您应该会看到此按钮。
我是我的应用程序,我在给定时间有这个代码:
UIApplication.sharedApplication().openURL(NSURL(string: "calshow://")!)
这会将您带到设备的日历。怎么回到那行执行的场景?
谢谢。
编辑:
按主页(option+shift+h,因为我的 iOS 模拟器中没有显示框架)会带你回到主页,而不是应用程序,它应该是。
引自this:
Unlike other platforms such as Android, iPhone does not create a stack of actions (back stacking on Android). What this means is that if you do decide to launch another application, your application will not resume when the user exits from the application you opened.
如果用户想要返回您的应用,他们应该按两次主页 (option+shift+H),然后 select 从列表中选择您的应用。
iOS9 在左上角引入了一个新的 "Back-To-App" 按钮,可让您返回到您的应用程序。在您的应用中显示日历后,您应该会看到此按钮。