0

There is a question Stackoverflow question talking about this but I tried adding the string in Info.plist and asked for locManager.request..InUse.... When I launch the app, I can see the alert view poping up but before I do anything(allow or do not allow), it gets dismissed and there is a warning message printed out in debug console.

a basic code skeleton is like the following: let locManager = CLLocationManager() locManager.requestwheninuseauthorization() // code to ask the map to track user location

Community
  • 1
  • 1
Junchao Gu
  • 1,815
  • 6
  • 27
  • 43
  • seems I need to implement this delegate... [Another stackoverflow question][1] [1]: http://stackoverflow.com/a/25978774/2858599 – Junchao Gu Jul 29 '15 at 02:49
  • See this answer, you'll get it http://stackoverflow.com/questions/25916841/cllocationmanager-startupdatinglocation-not-calling-locationmanagerdidupdateloc/26604933#26604933 – Mohit Tomar Jul 29 '15 at 03:09

0 Answers0