IOS8 UITableViewCell.detailTextLabel不显示解决方法
2015-01-05 10:56
453 查看
在cellForRowAtIndexPath 方法返回cell之前,加上这一句 [cell layoutSubviews];
</pre></div><div><pre name="code" class="objc"> -(UITableViewCell*)tableView:(UITableView *)tableView cellForRowAtIndexPath:(NSIndexPath *)indexPath { static NSString *CellIdentifier = @"detailCell"; UITableViewCell *cell = [self.contactDetailTable dequeueReusableCellWithIdentifier:CellIdentifier]; if (cell == nil) { cell = [[UITableViewCell alloc] initWithStyle:UITableViewCellStyleValue2 reuseIdentifier:CellIdentifier]; } // 解决ios8 detailTextLabel 不显示问题 // if ([self checkOSVersion] >= 8) { // 判断当前系统版本。(其实不判断也没问题) [cell layoutSubviews]; // } return cell; }
相关文章推荐
- iOS UITableViewCell无法显示detailTextLabel
- iOS如何显示 UITableViewCell detailTextLabel?
- ios8 tableview detailtextlabel不显示内容 备注
- IOS8 UITableViewCell线填充方法 不显示多余cell分割线
- 关于在extjs中使用column布局,不能显示textfield的标签(fieldLabel)解决方法
- UITableViewCell副标题不显示 cell.detailTextLabel.text 不显示
- 关于在extjs中使用column布局,不能显示textfield的标签(fieldLabel)解决方法
- 关于在extjs中使用column布局,不能显示textfield的标签(fieldLabel)解决方法
- iOS 关于如何将cell.detailTextLabel.text的内容显示出来的问题。
- UITableViewCell分割线左边部分缺少一些的解决方法
- EditText.setError()方法显示信息不全问题解决
- 解决struts中无法显示label的方法
- struts2标签不显示Label的解决方法
- 对于iOS 7 之后UITableViewCell左侧默认15像素的留白解决方法
- ios8 UITableVIewCell 侧滑显示多个按钮
- iOS cell重用机制导致数据重叠显示解决方法
- ios8 横屏状态栏不显示解决方法
- ios8 横屏状态栏不显示解决方法
- jfreechart坐标上label过多时显示成点的解决方法
- UITableViewCell中的UILabel添加手势没有响应的解决方法