#import <CoreLocation/CLLocationManager.h>
+ (BOOL)determineWhetherTheAPPOpensTheLocation;
+(BOOL)determineWhetherTheAPPOpensTheLocation{
if ([CLLocationManager locationServicesEnabled]&&([CLLocationManager authorizationStatus]==kCLAuthorizationStatusAuthorizedWhenInUse ||[CLLocationManager authorizationStatus]==kCLAuthorizationStatusNotDetermined ||[CLLocationManager authorizationStatus]==kCLAuthorizationStatusAuthorizedAlways) )
{
return YES;
}else if ([CLLocationManager authorizationStatus] ==kCLAuthorizationStatusDenied)
{
return NO;
}else
{
return NO;
}
}