Location Services not working in iOS 8

前端 未结 26 2051
滥情空心
滥情空心 2020-11-21 10:23

My app that worked fine on iOS 7 doesn\'t work with the iOS 8 SDK.

CLLocationManager doesn\'t return a location, and I don\'t see my app under

26条回答
  •  春和景丽
    2020-11-21 10:26

    - (void)startLocationManager
    {
        locationManager = [[CLLocationManager alloc] init];
        locationManager.delegate = self;
        locationManager.distanceFilter = kCLDistanceFilterNone; //whenever we move
        locationManager.desiredAccuracy = kCLLocationAccuracyBest;
    
        [locationManager startUpdatingLocation];
        [locationManager requestWhenInUseAuthorization]; // Add This Line
    
    
    }
    

    And to your info.plist File enter image description here

提交回复
热议问题