UI中地图的使用-创新互联
@interface ViewController ()
在淅川等地区,都构建了全面的区域性战略布局,加强发展的系统性、市场前瞻性、产品创新能力,以专注、极致的服务理念,为客户提供网站设计制作、成都网站设计 网站设计制作按需设计网站,公司网站建设,企业网站建设,高端网站设计,成都营销网站建设,成都外贸网站建设,淅川网站建设费用合理。{
CLLocationManager *manager;
}
@end
@implementation ViewController
- (void)viewDidLoad {
[super viewDidLoad];
// Do any additional setup after loading the view, typically from a nib.
manager = [[CLLocationManager alloc]init];
[manager requestAlwaysAuthorization];
MKMapView *mapView = [[MKMapView alloc]initWithFrame:self.view.bounds];
mapView.delegate = self;
mapView.mapType = MKMapTypeStandard;
CLLocationCoordinate2D center = {39.9115696831,116.2396262413};
MKCoordinateSpan span = {0.1, 0.1};
MKCoordinateRegion region = {center, span};
[mapView setRegion:region animated:YES];
mapView.showsUserLocation = YES;
[self.view addSubview:mapView];
}
#pragma mark-MKMapViewDelegate
- (void)mapView:(MKMapView *)mapView didSelectAnnotationView:(MKAnnotationView *)view
{
NSLog(@"view:%@",view);
}
- (void)mapView:(MKMapView *)mapView didUpdateUserLocation:(MKUserLocation *)userLocation
{
NSLog(@"userLocation:%@",userLocation);
}
- (MKAnnotationView *)mapView:(MKMapView *)mapView viewForAnnotation:(id
{
NSLog(@"annotation:%@",annotation);
return nil;
}
创新互联www.cdcxhl.cn,专业提供香港、美国云服务器,动态BGP最优骨干路由自动选择,持续稳定高效的网络助力业务部署。公司持有工信部办法的idc、isp许可证, 机房独有T级流量清洗系统配攻击溯源,准确进行流量调度,确保服务器高可用性。佳节活动现已开启,新人活动云服务器买多久送多久。
文章题目:UI中地图的使用-创新互联
网页网址:http://myzitong.com/article/dhohjh.html