【发布时间】:2015-03-30 15:32:34
【问题描述】:
当我尝试出队时,我在 UITableView 中有一个自定义 UITableViewCell(其中有两个 UILabel),它工作正常,但是当我试图显示我在 UITable 中传递的值时,它没有显示在自定义单元格中,但是刚刚正确出列并且高度很大(因此我知道它已正确出列)。
- (UITableViewCell *)tableView:(UITableView *)tableView cellForRowAtIndexPath:(NSIndexPath *)indexPath
{
EngineerCell *cell = (EngineerCell*) [tableView dequeueReusableCellWithIdentifier:@""];
Engineer *engr = [self.engineers objectAtIndex:indexPath.row];
cell.engrName.text = engr.engrName;
cell.engineType.text = engr.engineType;
cell.experience.text = [NSString stringWithFormat:@"%d",engr.experience];
NSLog(@"a%@a",cell.engrName.text);
return cell;
}
似乎没有响应,但已正确出队。
【问题讨论】:
-
你有没有试过用
NSArray *frequencies = [inp componentsSeparatedByString: @","];之类的东西把字符串分割成一个数组?
标签: objective-c xcode4.6