目的の C で iPhone の経度と緯度を取得したいのですが、これらの座標をプログラムで取得する方法を教えてもらえますか?
#import <Foundation/Foundation.h>
@class CLLocationManager;
@interface CLLocationController : NSObject {
CLLocationManager *locationManager;
}
@property (nonatomic, retain) CLLocationManager *locationManager;
@end
上記のコードを書くと、次のエラーが表示されます
/Hab/Folder/Classes/CLLocationController.m:10:30: error: CLLocationManager.h: No such file or directory
/Hab/Folder/Classes/CLLocationController.m:21: warning: receiver 'CLLocationManager' is a forward class and corresponding @interface may not exist
/Hab/Folder/Classes/CLLocationController.m:22: error: accessing unknown 'delegate' component of a property