开发者

Shifting UITableViewCell Content to the right

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

上一篇:

下一篇:

精彩评论

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

最新问答

问答排行榜