0

I want to my already build app work on iOS 8, so I install Xcode 6.0 and run my app into iOS 8 it is showing me few issues.

  • Picker view's values are not showing UIPickerView in iOS 8.
  • Location CLLocationManager is not working in iOS 8.

Kindly help me on these if some body faced these issues already. Looking for response. Thanks.

josh
  • 1,681
  • 4
  • 28
  • 61

1 Answers1

2

In iOS 8 you need 2 parts to get permission for CLLocationManager.

Provide one of the following strings in the info.plist file

  • NSLocationAlwaysUsageDescription
  • NSLocationWhenInUseUsageDescription

Call the appropriate permission method in code which matches the string above

  • requestAlwaysAuthorization
  • requestWhenInUseAuthorization
Walt Sellers
  • 3,806
  • 30
  • 35
  • Thanks I also got help location from other's thread but not getting for Picker view so is there possible for any solution. – josh Sep 23 '14 at 08:24
  • @josh for the UIPickerView, it is due to this problem: http://stackoverflow.com/questions/24366437/add-uipickerview-in-uiactionsheet-from-ios-8-not-working – verybadalloc Sep 23 '14 at 22:47