• <i id='b90l8'><tr id='b90l8'><dt id='b90l8'><q id='b90l8'><span id='b90l8'><b id='b90l8'><form id='b90l8'><ins id='b90l8'></ins><ul id='b90l8'></ul><sub id='b90l8'></sub></form><legend id='b90l8'></legend><bdo id='b90l8'><pre id='b90l8'><center id='b90l8'></center></pre></bdo></b><th id='b90l8'></th></span></q></dt></tr></i><div id='b90l8'><tfoot id='b90l8'></tfoot><dl id='b90l8'><fieldset id='b90l8'></fieldset></dl></div>
    <tfoot id='b90l8'></tfoot>
    1. <small id='b90l8'></small><noframes id='b90l8'>

        <bdo id='b90l8'></bdo><ul id='b90l8'></ul>

        <legend id='b90l8'><style id='b90l8'><dir id='b90l8'><q id='b90l8'></q></dir></style></legend>

      1. iOS 6 自动暂停不起作用

        时间:2023-09-01
          <bdo id='gNkq6'></bdo><ul id='gNkq6'></ul>

              <tbody id='gNkq6'></tbody>

                <i id='gNkq6'><tr id='gNkq6'><dt id='gNkq6'><q id='gNkq6'><span id='gNkq6'><b id='gNkq6'><form id='gNkq6'><ins id='gNkq6'></ins><ul id='gNkq6'></ul><sub id='gNkq6'></sub></form><legend id='gNkq6'></legend><bdo id='gNkq6'><pre id='gNkq6'><center id='gNkq6'></center></pre></bdo></b><th id='gNkq6'></th></span></q></dt></tr></i><div id='gNkq6'><tfoot id='gNkq6'></tfoot><dl id='gNkq6'><fieldset id='gNkq6'></fieldset></dl></div>

                <small id='gNkq6'></small><noframes id='gNkq6'>

                <tfoot id='gNkq6'></tfoot>
                • <legend id='gNkq6'><style id='gNkq6'><dir id='gNkq6'><q id='gNkq6'></q></dir></style></legend>
                • 本文介绍了iOS 6 自动暂停不起作用的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

                  问题描述

                  我已经按照Session 303 - 从定位服务保持跟踪"WWDC 2012 中的 AutoPause 示例

                  I've follow the example of AutoPause from "Session 303 - Staying on track from Location Services" WWDC 2012

                  在示例中,您可以看到 AutoPause 是如何启用的,并且有两个方法被调用:

                  In the example you can see how AutoPause is enabled and there two methods which are called:

                  -(void) locationManagerDidPauseLocationUpdates:(CLLocationManager *)manager
                  -(void) locationManagerDidResumeLocationUpdates:(CLLocationManager *)manager
                  

                  我做了同样的例子,但这些方法从来没有被调用过.谁试过了?

                  I've done the same example but these methods aren't never called. Who have tried the same?

                  推荐答案

                  我现在正在尝试,以下是我的观察:

                  I'm experimenting with that right now and here are my observations:

                  在 iPhone 4 上,这根本不起作用.即使您将 pausesLocationUpdatesAutomatically 设置为 YES,它也会将 pausesLocationUpdatesAutomatically 设置为 NO(0).没有警告,这是什么 API 设计反模式!

                  On iPhone 4, that is not working at all. Even if you set pausesLocationUpdatesAutomatically to YES it keeps pausesLocationUpdatesAutomatically as NO(0). No warnings, what kind of API design anti-pattern is this!

                  在 iPhone 5 上 pausesLocationUpdatesAutomatically 默认为 YES (1).并调用 locationManagerDidPauseLocationUpdates.我在调用 locationManagerDidResumeLocationUpdates 时运气不好.我也很困惑,如果 GPS 关闭,这将如何调用?一旦用户到达下一个网络单元,它会被调用吗?即使那不是我的经验,也从来没有被调用过.

                  On iPhone 5 pausesLocationUpdatesAutomatically is YES (1) by default. And locationManagerDidPauseLocationUpdates is called. I'm having a bad luck having the locationManagerDidResumeLocationUpdates called. I'm also puzzled how this is going to be called if GPS is off? Will it be called once user reaches the next network cell? Even that is not my experience, it is not ever called.

                  到目前为止,在我看来,这是 iOS6 中一致性最差的变化之一.对于所有场景,我可能只使用 pausesLocationUpdatesAutomatically = NO,并希望在 iOS6 的所有型号上都能正常工作.

                  So far, looks to me as one of the least consistent changes in iOS6. I might be going with just pausesLocationUpdatesAutomatically = NO for all scenarios and will hope that works ok on all models with iOS6.

                  [更新 - 2013 年 3 月 4 日].我查看了 Apple 关于 iOS6 中位置更改的演示文稿,他们建议在收到区域更改事件后使用区域更改监控来取消暂停".虽然这不适合我的场景,因为用户可能会去/跑步/开车一两公里,直到发生此类事件.

                  [Update - 4-Mar-2013]. I looked through the Apple's presentation for location changes in iOS6 and they suggest to use the region changes monitoring to "un-pause" once you get region changes event. Though this is not suitable for my scenarios as user might go/run/drive for a kilometer or two until such an event happens.

                  这篇关于iOS 6 自动暂停不起作用的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持html5模板网!

                  上一篇:在 Swift 中从 Radius 中的 GeoFire 检索密钥 下一篇:将从应用程序获取的地理位置传递给 UIWebView

                  相关文章

                  最新文章

                • <i id='0nJom'><tr id='0nJom'><dt id='0nJom'><q id='0nJom'><span id='0nJom'><b id='0nJom'><form id='0nJom'><ins id='0nJom'></ins><ul id='0nJom'></ul><sub id='0nJom'></sub></form><legend id='0nJom'></legend><bdo id='0nJom'><pre id='0nJom'><center id='0nJom'></center></pre></bdo></b><th id='0nJom'></th></span></q></dt></tr></i><div id='0nJom'><tfoot id='0nJom'></tfoot><dl id='0nJom'><fieldset id='0nJom'></fieldset></dl></div>
                    <tfoot id='0nJom'></tfoot>

                      <small id='0nJom'></small><noframes id='0nJom'>

                        <bdo id='0nJom'></bdo><ul id='0nJom'></ul>

                    1. <legend id='0nJom'><style id='0nJom'><dir id='0nJom'><q id='0nJom'></q></dir></style></legend>