Iphone 如何在ios中检测用户当前授权位置并重新加载数据?

Iphone 如何在ios中检测用户当前授权位置并重新加载数据?,iphone,objective-c,geolocation,cllocationmanager,Iphone,Objective C,Geolocation,Cllocationmanager,在视图中,使用加载方法 我打电话来 /**initialize location manager**/ if (nil == locationManager) locationManager = [[CLLocationManager alloc] init]; //set the delegate for the location manager //locationManager.delegate = self; // set your d

在视图中,使用加载方法 我打电话来

  /**initialize location manager**/
    if (nil == locationManager)
        locationManager = [[CLLocationManager alloc] init];
    //set the delegate for the location manager
    //locationManager.delegate = self;
    // set your desired accuracy
    locationManager.desiredAccuracy = kCLLocationAccuracyKilometer;
    [locationManager startUpdatingLocation];
在加载
Tableview
时从用户处获取权限

我如何捕获用户授权应用程序随时获取权限的事件

status == kCLAuthorizationStatusAuthorized

然后重新加载表?

使用
-[CLLocationManager setDelegate://code>在位置管理器实例上注册一个
CLLocationManager-delegate
。您的代理应执行。

使用
-[CLLocationManager setDelegate://code>在您的location manager实例上注册一个
CLLocationManager-delegate
。您的委托人应该执行