网站开发与移动开发

博客园 首页 新随笔 管理

2012年6月29日 #

摘要: IOS上使用地图比Android要方便,只需要新建一个MKMapView,addSubView即可。这次要实现的效果如下:有标注(大头针),定位,地图。1、添加地图1.1 新一个Single View app ,选择默认项,创建后,在ViewController.h#import <UIKit/UIKit.h> #import <MapKit/MapKit.h> #import <CoreLocation/CoreLocation.h> @interface ViewController : UIViewController <MKMapViewDel 阅读全文
posted @ 2012-06-29 00:22 txf2004 阅读(339) 评论(0) 推荐(0) 编辑