iPhone之获取当前位置
摘要:
来自:http://blog.sina.com.cn/s/blog_4adf31ea010176hq.html首先,加入地图包接口代码:#import <UIKit/UIKit.h>#import <MapKit/MapKit.h>@interface View30 : UIViewController <CLLocationManagerDelegate,MKMapViewDelegate>{ MKMapView *map;}@end实现代码:- (void)viewDidLoad { [super viewDidLoad];//创建位置管理器CLLoca 阅读全文
posted @ 2012-05-31 10:29 黯夜曦 阅读(231) 评论(0) 推荐(0) 编辑