久久久久久久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 準備就緒.我讀了很多關(guān)于

                  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.

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

                  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) 描述了應用程序在運行時正常訪問用戶位置的原因在前臺.當您的應用使用位置信息時包含此密鑰直接跟蹤用戶當前位置的服務.這把鑰匙不支持使用位置服務監(jiān)控區(qū)域或監(jiān)控使用重大位置更改服務的用戶位置.這系統(tǒng)在顯示的警報面板中包含此鍵的值請求使用位置服務的權(quán)限時的用戶.

                  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 類的方法來請求授權(quán)位置服務.如果在您調(diào)用requestWhenInUseAuthorization 方法不包括這個鍵,系統(tǒng)會忽略您的請求.

                  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 鍵,系統(tǒng)使用此鍵并忽略 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.

                  閱讀它這里.

                  我發(fā)現(xiàn)將此鍵添加到 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.

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

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

                  相關(guān)文檔推薦

                  Help calculating X and Y from Latitude and Longitude in iPhone(幫助從 iPhone 中的緯度和經(jīng)度計算 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 或網(wǎng)絡提供商)
                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>
                            主站蜘蛛池模板: 99久久日韩精品免费热麻豆美女 | 日本一区二区高清视频 | 久久亚洲国产精品日日av夜夜 | 精品国产乱码 | 一区二区在线免费观看 | 精品欧美一区二区三区久久久 | 久久精品国产一区二区三区 | 国产一区二区三区在线看 | 熟女毛片 | 亚洲综合一区二区三区 | 99久久免费精品 | av官网在线 | 久在线视频播放免费视频 | 久久久999成人| 欧美日韩精品一区二区三区视频 | 欧州一区二区三区 | 国产午夜精品久久久 | 一区二区三区四区不卡视频 | 精品久久亚洲 | 国产98色在线 | 日韩 | 国产精品久久久久久久久久免费看 | 在线视频 亚洲 | 国产欧美精品在线观看 | 亚洲成人一区 | 给我免费的视频在线观看 | 日本a视频| 国产精品成av人在线视午夜片 | 国产成人99久久亚洲综合精品 | 国产日产精品一区二区三区四区 | 国产欧美日韩视频 | 99精品一区| 国产一区二区电影 | 久草视频在线播放 | 精品久久久久香蕉网 | 精品一级 | 99国产精品视频免费观看一公开 | 午夜性色a√在线视频观看9 | www.蜜桃av| 亚洲国产aⅴ精品 | 韩国理论电影在线 | 亚洲欧美在线视频 |