• <bdo id='yAwmD'></bdo><ul id='yAwmD'></ul>

    1. <small id='yAwmD'></small><noframes id='yAwmD'>

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

        <tfoot id='yAwmD'></tfoot>
      1. <legend id='yAwmD'><style id='yAwmD'><dir id='yAwmD'><q id='yAwmD'></q></dir></style></legend>

        StopUpdatingLocation 方法不适用于 iOS5

        StopUpdatingLocation method not working for iOS5(StopUpdatingLocation 方法不适用于 iOS5)

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

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

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

                  <tbody id='RrsMj'></tbody>
                • 本文介绍了StopUpdatingLocation 方法不适用于 iOS5的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着跟版网的小编来一起学习吧!

                  问题描述

                  我正在开发地图应用程序,

                  I am working on map application,

                  我正在尝试使用 [locationManager stopUpdatingLocation]; 方法来停止定位服务.

                  I am try to use [locationManager stopUpdatingLocation]; method to stop the Location services.

                  在iOS4.3好像可以正常使用,但是在iOS5就不行了.

                  It seems that it works fine in iOS4.3 but in iOS5, it's not working.

                  请任何人建议我如何在 iOS5 中停止定位服务?

                  Please any one suggest me How to stop location services in iOS5?

                  推荐答案

                  有时位置管理器即使在 stopUpdationLocations 之后也不会停止.

                  Sometimes it happens that location manager does not stop even after stopUpdationLocations.

                  您需要为该集合释放您的位置管理器:

                  You need to release your location manager, for that set:

                  locationManager = nil;
                  

                  这应该写在:

                  [locationManager stopUpdatingLocation];

                  另外,请注意不要在将 locationManager 对象设置为 nil 后调用它,否则您的应用程序将崩溃.

                  Also, take care you don't call locationManager object, after setting it to nil, else your application will crash.

                  如果它仍然没有停止位置服务,那么有解决方案,如果您以后不想使用它,只需使用 BOOL 变量.

                  If it stills not stopping location services, then there is work around solution, just use BOOL variable if you don't want to use it in future.

                  这篇关于StopUpdatingLocation 方法不适用于 iOS5的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持跟版网!

                  本站部分内容来源互联网,如果有图片或者内容侵犯了您的权益,请联系我们,我们会在确认后第一时间进行删除!

                  相关文档推荐

                  Getting an NSArray of a single attribute from an NSArray(从 NSArray 获取单个属性的 NSArray)
                  ImageIO: lt;ERRORgt; JPEG Corrupt JPEG data: premature end of data segment iphone - how to catch this?(ImageIO:lt;错误gt;JPEG 损坏的 JPEG 数据:iphone 数据段过早结束 - 如何捕捉到这个?)
                  How to get indexPath.row of tableView which is currently being displayed?(如何获取当前正在显示的 tableView 的 indexPath.row?)
                  Xcode iOS organizer submit to app store yields quot;The archive is invalidquot; error(Xcode iOS 管理器提交到应用商店产生“存档无效;错误)
                  MFMessageComposeViewController alloc returns nil(MFMessageComposeViewController alloc 返回 nil)
                  How to add and get the values from .plist in iOS(如何在 iOS 中从 .plist 添加和获取值)

                  1. <tfoot id='Pn71D'></tfoot>
                    • <legend id='Pn71D'><style id='Pn71D'><dir id='Pn71D'><q id='Pn71D'></q></dir></style></legend>

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

                        • <bdo id='Pn71D'></bdo><ul id='Pn71D'></ul>

                            <tbody id='Pn71D'></tbody>

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