- (void)layoutSubviews {
[super layoutSubviews];
self.imageView.frame = CGRectMake(5.0f , 5.0f, 50.0f, 50.0f);
self.imageView.contentMode = UIViewContentModeScaleAspectFit;
self.textLabel.frame = CGRectMake(60.0f, self.textLabel.frame.origin.y, self.textLabel.frame.size.width, self.textLabel.frame.size.height);
}
图像视图设置正确但是图像视图一侧的分隔线为空如何在imageview上方的分隔线或仅用于自定义imageview
答案 0 :(得分:4)
我在viewdidload中添加以下行
[self.tableviewName setSeparatorInset:UIEdgeInsetsZero];
现在分隔线显示完全