UITableViewCell无法在XCode 5.1.1中正确加载

时间:2014-07-03 15:15:26

标签: ios objective-c ios7

enter image description here
我使用带有3个标签的自定义单元格,并且UIImageView标签位于顶部,imageview位于标签下方。

它在Xcode 5.0.2中运行良好,但在Xcode 5.1.1中,顶部的标签是隐藏的,当我滚动顶部的标签变得可见时,如何解决问题。 单元格从笔尖加载。

 _tableView=[[UITableView alloc] initWithFrame:CGRectMake(0, 0, self.frame.size.width,self.frame.size.height)]; //[UIScreen mainScreen].bounds.size.height-150)];

///// cell for row ////////////

    cell=(HomeCustomCell *)[tableView dequeueReusableCellWithIdentifier:identifier];
    if(cell==nil)
    {
        cell=[[[NSBundle mainBundle] loadNibNamed:@"HomeCustomCell" owner:self options:nil] objectAtIndex:0];
}

    cell.categoryLabel.text=object.challengeTitle;

// values populated in labels code is here

由于

0 个答案:

没有答案
相关问题