if([array count] ==0){
//array is empty
}
//array is empty
}
NSString* feng = [string substringToIndex:4]
NSString* zhong = [string substringFromIndex:5]
SString* myStr = @"This is the Testing String";
NSData* cData = [myStr dataUsingEncoding:NSUTF8StringEncoding];
NSLocationWhenInUseUsageDescription
NSLocationAlwaysUsageDescription
YourAppName would like to use your location.
#define IS_OS_8_OR_LATER ([[[UIDevice currentDevice] systemVersion] floatValue] >= 8.0)
self.locationManager = [[CLLocationManager alloc] init];
if(IS_OS_8_OR_LATER) {
[self.locationManager requestWhenInUseAuthorization];
[self.locationManager requestAlwaysAuthorization];
}