【发布时间】:2013-11-10 12:07:36
【问题描述】:
我有一个包含 UItableView、地图视图和段控制的 viewController,如下图所示:
![在此处输入图片描述][1]
TestViewController.h
@interface TestViewController UIViewController:<MKMapViewDelegate,CLLocationManagerDelegate,UITableViewDataSource,UITableViewDelegate> {CLLocationManager * locationManager;}
TestViewController.m
MyMap.delegate=self;
// Ensure that you can view your own location in the map view.
[MyMap setShowsUserLocation:YES];
UItableView 工作正常,但是当我写“[MyMap setShowsUserLocation:YES];”时它显示错误
这是错误信息: 'UITableView' 没有可见的@interface 声明选择器'setShowsUserLocation:'
提前致谢
【问题讨论】:
-
...图片在哪里?
-
很遗憾,因为我是新用户,所以我不能把它放在那里!
标签: ios iphone objective-c uitableview mapkit