简体   繁体   English

在 iPhone 中按五次主页按钮并获取当前位置?

[英]FIVE time press home button in iphone and get current location?

五次按下 iPhone 中的主页按钮并获取当前位置坐标并将此任务发布到 apis 服务器是否可行?

You can't handle home button events in your app : you can only know when it becomes inactive or active using your app delegate methods : applicationWillResignActive applicationDidEnterBackground or applicationWillTerminate您无法处理应用程序中的主页按钮事件:您只能使用应用程序委托方法知道它何时变为非活动状态或活动状态: applicationWillResignActive applicationDidEnterBackgroundapplicationWillTerminate

Read UIApplicationDelegate protocol reference for further information阅读UIApplicationDelegate 协议参考以获取更多信息

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM