1
// Create a location manager object
self.locationManagerTest = [[CLLocationManager alloc] init];
// Set the delegate
self.locationManagerTest.delegate = self;
// Request location authorization
[self.locationManagerTest requestAlwaysAuthorization];
// Specify the type of activity your app is currently performing
self.locationManagerTest.activityType = CLActivityTypeOtherNavigation;
// Start location updates
[self.locationManagerTest startUpdatingLocation];