我在访问数组中的对象时遇到问题。我将“放置”对象存储在我的 NSMutableArray 中。我想为我的 TableView 访问这个数组。我在第一行收到“没有已知的选择器实例方法”错误。请参阅下面的行。
cell.imageView = [[self.currentPlaces objectAtIndex:indexPath.row]picture];
cell.subtitleLB.text = [[self.currentPlaces objectAtIndex:indexPath.row]description];
cell.objectNameLB.text = [[self.currentPlaces objectAtIndex:indexPath.row]name];
这是我的地方对象:
@interface Place : NSObject{
CLLocation *objectLocation;
UIImageView *picture;
NSString *name;
NSString *description;
}
属性“描述”和“名称”的访问没有问题。我只是不知道为什么会发生这个错误。
谢谢。多米尼克