极致框架是什么
- (void)viewDidLoad {
[super viewDidLoad];
// 1、-viewDidLoad中请求权限
[self requestLocationAuthorization:YES];
}
// 2、检查定位权限
[self requestLocationSuccessHandler:^(CLLocationManager *locationManager) {
// 3、在确保拥有定位权限时请求定位,并通过代理方法来处理位置信息
[locationManager requestLocation];
} failureHandler:^(CLLocationManager *locationManager, CLAuthorizationStatus authorizationStatus) {
// do some thing here when failure
}