【发布时间】:2013-12-03 12:02:27
【问题描述】:
我创建了一个从 TableViewCell 派生的自定义 tableCell。它只包含一个 MkMapView 属性。
在 ViewDidLoad 中我这样做了。
`- (void)viewDidLoad { [超级viewDidLoad];
//访问mapView
MapViewTableCell *mapViewCell = [[self tableView] dequeueReusableCellWithIdentifier:@"MapViewCell"];
self.mapView = mapViewCell.mapView;
self.mapView.delegate = self;
}`
在这个 tableViewCell 下我有这个
@property (nonatomic, strong) MKMapView *mapView;
所以在其余代码中,我访问 mapView 的方式与访问它的方式相同,即 self.mapView。
但在那之后我发现虽然通过 NSLog 我看不出我的 self.mapView 对象有什么问题,但它的 setRegion 根本不起作用,我无法再更新 mapView 上的任何注释。
有没有人发现过这样的问题?
【问题讨论】:
标签: uitableview ios7 mkmapview