久久久久久久av_日韩在线中文_看一级毛片视频_日本精品二区_成人深夜福利视频_武道仙尊动漫在线观看

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

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

        • <bdo id='gx9sr'></bdo><ul id='gx9sr'></ul>
        <tfoot id='gx9sr'></tfoot>
      1. <small id='gx9sr'></small><noframes id='gx9sr'>

        iOS 8 requestWhenInUseAuthorization 沒有彈出

        iOS 8 requestWhenInUseAuthorization no Popup(iOS 8 requestWhenInUseAuthorization 沒有彈出)
        <legend id='m9Tn9'><style id='m9Tn9'><dir id='m9Tn9'><q id='m9Tn9'></q></dir></style></legend>

            <tbody id='m9Tn9'></tbody>

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

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

                <tfoot id='m9Tn9'></tfoot>
                1. 本文介紹了iOS 8 requestWhenInUseAuthorization 沒有彈出的處理方法,對大家解決問題具有一定的參考價值,需要的朋友們下面隨著小編來一起學習吧!

                  問題描述

                  我試圖讓我的 AppProject iOS 8 準備就緒.我讀了很多關于

                  I tried to make my AppProject iOS 8 ready. I had read a lot about

                  [_locationManager requestWhenInUseAuthorization];
                  

                  和plist中的條目

                  NSLocationWhenInUseUsageDescription
                  

                  所以我更改了所有必要的代碼行.

                  So I changed all the necessary code lines.

                  它工作正常,但現在我再次從我的 iOS 7 基礎復制我的項目以包含新功能.但是當我對 iOS8 位置隱私進行更改時,彈出窗口不再出現.

                  It works fine, but now I have copied my project again from my iOS 7 base to include new features. But when I make the changes for the iOS8 Location Privacy the Popup doesn't appear anymore.

                  我的代碼在我復制之前一直有效.

                  My code worked until I copied.

                  <?xml version="1.0" encoding="UTF-8"?>
                  <!DOCTYPE plist PUBLIC "-//Apple//DTD PLIST 1.0//EN" "http://www.apple.com/DTDs/PropertyList-1.0.dtd">
                  <plist version="1.0">
                      <dict>
                          <key>NSLocationWhenInUseUsageDescription</key>
                          <string>tolle sache </string>
                          <key>CFBundleDevelopmentRegion</key>
                          <string>en</string>
                          <key>CFBundleExecutable</key>
                          <string>${EXECUTABLE_NAME}</string>
                          <key>CFBundleIdentifier</key>
                          <string>fapporite.${PRODUCT_NAME:rfc1034identifier}</string>
                          <key>CFBundleInfoDictionaryVersion</key>
                          <string>6.0</string>
                          <key>CFBundlePackageType</key>
                          <string>BNDL</string>
                          <key>CFBundleShortVersionString</key>
                          <string>1.0</string>
                          <key>CFBundleSignature</key>
                          <string>????</string>
                          <key>CFBundleVersion</key>
                          <string>1</string>
                      </dict>
                  </plist>
                  

                  這是我的電話

                  - (instancetype)initWithCoder:(NSCoder *)coder
                  {
                      self = [super initWithCoder:coder];
                      if (self) {
                  
                          _UserLocation = [[CLLocation alloc]init];
                          _locationManager = [[CLLocationManager alloc]init]; // initializing locationManager
                          _locationManager.delegate = self;
                          _locationManager.desiredAccuracy = kCLLocationAccuracyBest; // setting the accuracy
                          [_locationManager requestWhenInUseAuthorization]; // iOS 8 MUST
                          [_locationManager startUpdatingLocation];  //requesting location updates
                  
                          NSLog(@"passed initwithcode");
                  
                      }
                      return self;
                  }
                  

                  我該如何解決這個問題?

                  How can I fix this?

                  推薦答案

                  來自文檔

                  NSLocationWhenInUseUsageDescription (String - iOS) 描述了應用程序在運行時正常訪問用戶位置的原因在前臺.當您的應用使用位置信息時包含此密鑰直接跟蹤用戶當前位置的服務.這把鑰匙不支持使用位置服務監控區域或監控使用重大位置更改服務的用戶位置.這系統在顯示的警報面板中包含此鍵的值請求使用位置服務的權限時的用戶.

                  NSLocationWhenInUseUsageDescription (String - iOS) describes the reason why the app accesses the user’s location normally while running in the foreground. Include this key when your app uses location services to track the user’s current location directly. This key does not support using location services to monitor regions or monitor the user’s location using the significant location change service. The system includes the value of this key in the alert panel displayed to the user when requesting permission to use location services.

                  使用 requestWhenInUseAuthorization 時需要此密鑰CLLocationManager 類的方法來請求授權位置服務.如果在您調用requestWhenInUseAuthorization 方法不包括這個鍵,系統會忽略您的請求.

                  This key is required when you use the requestWhenInUseAuthorization method of the CLLocationManager class to request authorization for location services. If the key is not present when you call the requestWhenInUseAuthorization method without including this key, the system ignores your request.

                  iOS 8.0 及更高版本支持此鍵.如果您的 Info.plist 文件包括這個鍵和 NSLocationUsageDescription 鍵,系統使用此鍵并忽略 NSLocationUsageDescription 鍵.

                  This key is supported in iOS 8.0 and later. If your Info.plist file includes both this key and the NSLocationUsageDescription key, the system uses this key and ignores the NSLocationUsageDescription key.

                  閱讀它這里.

                  我發現將此鍵添加到 info.plist 的最簡單方法是右鍵單擊 info.plist 并選擇

                  I find that the easiest way to add this key to your info.plist is to right click you info.plist and choose

                  打開為->源代碼

                  然后在最后before </dict></plist>

                  <key>NSLocationWhenInUseUsageDescription</key>
                  <string></string>
                  

                  如果你愿意,你可以在 <string></string> 之間添加一個文本,向用戶描述你為什么要使用他/她的位置.此文本將顯示在警報的默認文本下.

                  If you want you can add a text in between <string></string> that describes to the user why you want to use his/hers location. This text will show up under the default text in the alert.

                  這篇關于iOS 8 requestWhenInUseAuthorization 沒有彈出的文章就介紹到這了,希望我們推薦的答案對大家有所幫助,也希望大家多多支持html5模板網!

                  【網站聲明】本站部分內容來源于互聯網,旨在幫助大家更快的解決問題,如果有圖片或者內容侵犯了您的權益,請聯系我們刪除處理,感謝您的支持!

                  相關文檔推薦

                  Help calculating X and Y from Latitude and Longitude in iPhone(幫助從 iPhone 中的緯度和經度計算 X 和 Y)
                  Get user#39;s current location using GPS(使用 GPS 獲取用戶的當前位置)
                  IllegalArgumentException thrown by requestLocationUpdate()(requestLocationUpdate() 拋出的 IllegalArgumentException)
                  How reliable is LocationManager#39;s getLastKnownLocation and how often is it updated?(LocationManager 的 getLastKnownLocation 有多可靠,多久更新一次?)
                  CLLocation returning negative speed(CLLocation 返回負速度)
                  How to detect Location Provider ? GPS or Network Provider(如何檢測位置提供者?GPS 或網絡提供商)
                2. <i id='D0jMH'><tr id='D0jMH'><dt id='D0jMH'><q id='D0jMH'><span id='D0jMH'><b id='D0jMH'><form id='D0jMH'><ins id='D0jMH'></ins><ul id='D0jMH'></ul><sub id='D0jMH'></sub></form><legend id='D0jMH'></legend><bdo id='D0jMH'><pre id='D0jMH'><center id='D0jMH'></center></pre></bdo></b><th id='D0jMH'></th></span></q></dt></tr></i><div class="qwawimqqmiuu" id='D0jMH'><tfoot id='D0jMH'></tfoot><dl id='D0jMH'><fieldset id='D0jMH'></fieldset></dl></div>

                    <tfoot id='D0jMH'></tfoot>

                        • <small id='D0jMH'></small><noframes id='D0jMH'>

                        • <legend id='D0jMH'><style id='D0jMH'><dir id='D0jMH'><q id='D0jMH'></q></dir></style></legend>
                          • <bdo id='D0jMH'></bdo><ul id='D0jMH'></ul>
                              <tbody id='D0jMH'></tbody>
                            主站蜘蛛池模板: 久久狠狠干 | 国产精品一二三四区 | 国产精品久久久久久久久久久久久 | 亚洲精品18在线观看 | 精品视频免费在线观看 | 性做久久久 | 亚洲天堂网站 | 一级片观看 | 四虎在线免费视频 | 九九九视频 | 日韩精品片 | 福利视频免费 | 成人国产精品久久久网站 | 色婷婷国产精品综合在线观看 | 毛片aaa | 精品国产一区二区三 | 99自拍视频 | 在线播放91 | 成人aa| 免费a在线观看 | 国产一区二区不卡 | 伊人久操| 日韩在线视频一区 | 国产一区欧美 | 91手机看片 | 免费高清av | 亚欧洲精品在线视频免费观看 | 91看片在线 | 在线观看a视频 | 亚洲成人免费在线观看 | 狠狠se | 99久久久久久 | 深夜福利视频在线观看 | 性生活毛片 | 国产激情网 | 怡红院亚洲 | 午夜视频一区 | 日日夜夜精品免费 | 欧美一区二区三区在线视频 | 欧美综合在线视频 | 午夜视频成人 |