Как «добавить существующие рамки» в Xcode 4?
ервый раз, когда я работаю со службами определения местоположения и у меня появляется ошибка компоновщика:
Неопределенные символы для архитектуры i386: "_OBJC_CLASS _ $ _ CLLocationManager"
Я добавил#import <CoreLocation/CoreLocation.h>
и добавил следующие строки вviewDidLoad
CLLocationManager *manager = [[CLLocationManager alloc] init];
manager.delegate = self;
[manager startUpdatingLocation];
[UIApplication sharedApplication].networkActivityIndicatorVisible = YES;
if (![CLLocationManager locationServicesEnabled]){
UIAlertView *servicesDisabledAlert = [[UIAlertView alloc] initWithTitle:@"Location Services Disabled" message:@"You currently have all location services for this device disabled. If you proceed, you will be asked to confirm whether location services should be reenabled." delegate:nil cancelButtonTitle:@"OK" otherButtonTitles:nil];
[servicesDisabledAlert show];
[servicesDisabledAlert release];
}
[manager release];