而唱片公司的价值是零为好。
我真的不知道发生了什么事情。
这些都是我的课/码
@interface CustomEventCell : UITableViewCell{
}
@property (nonatomic, weak) IBOutlet UILabel *participant1label;
@property (nonatomic, weak) IBOutlet UILabel *participant2label;
@property (nonatomic, weak) IBOutlet UILabel *status;
@end
事件模型
@interface Event : NSObject{
}
@property NSNumber *matchId;
@property NSString *participant1, *participant2,
-(id)init;
@end
这是填补了电池的实现代码如下
- (UITableViewCell *)tableView:(UITableView *)tableView cellForRowAtIndexPath:(NSIndexPath *)indexPath
{
static NSString *CellIdentifier = @"EventCell";
CustomEventCell *cell = [tableView dequeueReusableCellWithIdentifier:CellIdentifier];
if(cell == nil)
{
cell = [[CustomEventCell alloc] initWithStyle:UITableViewCellStyleDefault reuseIdentifier:CellIdentifier];
}
// events is a NSMutableArray with Event instances
Event *event = [events objectAtIndex:indexPath.row];
cell.participant1label.text = event.participant1;
return cell;
}
这里是我的设置
我必须失去了一些东西,因为我有其他的UITableView,它populatees定制没有问题。 我比较了他们,他们是一致的。 我甚至试图要回常规标签,这将填补起来,但没有这个习俗之一。
编辑:
修改错误复制的代码。