开发者

Shifting UITableViewCell Content to the right

开发者 https://www.devze.com 2022-12-29 01:33 出处:网络
Is there a simple way to shift cell content to t开发者_如何转开发he right?Like a horizontal alignment or some sort of offset?

Is there a simple way to shift cell content to t开发者_如何转开发he right? Like a horizontal alignment or some sort of offset?

I'd rather not

  • include a blank cell.imageView.image, or

  • add spaces to each cell.textLabel.text.

Any ideas please. Thanks.


Create a UIView that contains subviews positioned where you want, i.e. set their frames. Then set the cell's contentView property to this parent view.

0

精彩评论

暂无评论...
验证码 换一张
取 消

关注公众号