久久久久久久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>
                            主站蜘蛛池模板: 丁香久久 | 中文字幕 国产精品 | 亚洲精品片 | 亚洲国产精品日本 | 黄色片在线 | 国产精品久久久久久妇女 | 欧美1区 | 午夜一区| 精品中文字幕视频 | 免费国产视频在线观看 | 日韩欧美在线不卡 | 日韩高清中文字幕 | 国产在线播| 精品91久久| 国产在线观看一区二区三区 | 中文天堂网 | 91久久国产综合久久91精品网站 | 欧美日韩久久 | 婷婷国产一区二区三区 | 91成人精品 | 日韩一级精品视频在线观看 | 欧美精品一区三区 | 成人午夜精品 | 国产精品一区二区三级 | 天天干成人网 | 国产电影一区二区三区爱妃记 | 国产精品久久久久久久久久久久冷 | 亚洲视频在线观看 | 毛片免费视频 | 女女爱爱视频 | 特级黄一级播放 | 欧美日韩在线一区二区 | 欧美日韩亚洲国产 | xx性欧美肥妇精品久久久久久 | 综合一区二区三区 | 91精品国产手机 | 亚洲女人天堂成人av在线 | 亚洲免费一 | 日韩久草 | 在线综合视频 | 伊人电影院av|