Find centralized, trusted content and collaborate around the technologies you use most.
Teams
Q&A for work
Connect and share knowledge within a single location that is structured and easy to search.
您可以更改左侧详细信息 UITableView 单元格上详细信息 UILabel 的宽度而不对其进行子类化吗?也就是说左边标签的文字太长了,我想把两个标签的中心移到右边。
-layoutSubviews是的,您可以在方法中更改框架
-layoutSubviews
- (void)layoutSubviews { [super layoutSubviews]; self.detailTextLabel.frame = //yourFrame }