if ([UIDevice currentDevice].systemVersion.doubleValue >= 9.0) {
[self.locManager setAllowsBackgroundLocationUpdates:YES];
}
还要配置plist列表 不然会崩溃