2016-08-04 10 views
5

में स्थान सेवा के लिए ऐप स्पष्टीकरण कैसे जोड़ें I नीचे दी गई छवि की तरह सेटिंग में स्थान सेवा उपयोग के लिए ऐप स्पष्टीकरण जोड़ना चाहते हैं। क्या किसी को पता है कि यह कैसे करें? धन्यवाद! app explanation for location serviceसेटिंग्स

+0

आप iPhone की सेटिंग में अपने ऐप के बारे में कुछ जानकारी जोड़ना चाहते हैं। आप "बंडल सेटिंग्स" का उपयोग कर सकते हैं। [ट्यूटोरियल] (https://github.com/Weijay/SettingsBundle) – WeiJay

उत्तर

6

आप अपने एक्सकोड प्रोजेक्ट में Info.plist में एक स्पष्टीकरण जोड़ सकते हैं।

<key>NSLocationAlwaysUsageDescription</key> 
<string>The applicaiton requires location services to workss</string> 

नीचे छवि देखें

enter image description here

नीचे

enter image description here

1

परिणाम देख आप info.plist

<key>NSLocationAlwaysUsageDescription</key> 
<string>This application requires location services to work</string> 
<key>NSLocationWhenInUseUsageDescription</key> 
<string>This application requires location services to work</string> 
में कोड जोड़ सकते हैं

enter image description here

और स्थान सेवा अनुमति भी जांचें।

if([CLLocationManager locationServicesEnabled]){ 

      NSLog(@"Location Services Enabled"); 

      if([CLLocationManager authorizationStatus]==kCLAuthorizationStatusDenied){ 
       alert = [[UIAlertView alloc] initWithTitle:@"App Permission Denied" 
                 message:@"To re-enable, please go to Settings and turn on Location Service for this app." 
                 delegate:nil 
               cancelButtonTitle:@"OK" 
               otherButtonTitles:nil]; 
       [alert show]; 
      } 
     } 
1

@ रुरुनी का जवाब सही है।

एक्सकोड 8 में कुछ अपडेट 8. वे हमें प्लेस्ट में गोपनीयता की सूची देते हैं।

से हम जोड़ सकते हैं कि

:

गोपनीयता - स्थान प्रयोग विवरण

<key>NSLocationUsageDescription</key> 
<string>This application will use location service for user location sharing.</string> 

enter image description here

संबंधित मुद्दे