2
@protocol MyCLControllerDelegate <NSObject>
@required
- (void)locationUpdate:(CLLocation *)location;
- (void)locationError:(NSError *)error;
@end
@interface MyCLController : NSObject <CLLocationManagerDelegate> {
CLLocationManager *locationManager;
id delegate;
}
@property (nonatomic, retain) CLLocationManager *locationManager;
@property (nonatomic, assign) id <MyCLControllerDelegate> delegate;
- (void)locationManager:(CLLocationManager *)manager
didUpdateToLocation:(CLLocation *)newLocation
fromLocation:(CLLocation *)oldLocation;
- (void)locationManager:(CLLocationManager *)manager
didFailWithError:(NSError *)error;
@end
코드가, 내가 잘 생각, 내가 생각하는 문제가있다 라이브러리,하지만 이전에 프레임 워크를 추가했지만 작동하지 않습니다.
무엇이 문제 일 수 있습니까?
에 오신 것을 환영합니다 SO에 있습니다. "{}"버튼을 사용하면 코드가 매우 멋진 형식으로 포장되어 사람들이 귀하의 질문에보다 쉽게 도움을 줄 수 있습니다. 나는 이번에 너를 돌 보았다. –
해당 코드에'CLLocation'이 여러 번 나타납니다. 어떤 줄이 오류를 내고 있습니까? – Jim