简体   繁体   English

Objective-C UITableViewCell左/右/上/下空间

[英]Objective-C UITableViewCell left/right/top/bottom space

How can i get this kind of UITableViewCells with left/right/top/bottom spacings?? 我如何获得这种具有左/右/上/下间距的UITableViewCells? It's almost same thing as used in Facebook app. 与Facebook应用中使用的几乎相同。 Because I'm new here, I can't send pictures so here is link to look-alike aplication. 由于我是新来的,因此我无法发送图片,因此这里是指向相似应用程序的链接。

See on this site, news.me application 请参阅此网站上的news.me应用程序

If I understand you right, you want to have some custom tableViewCells. 如果我理解正确,那么您想要一些自定义的tableViewCells。 By subclassing UITableViewCell class you can customize it. 通过子类化UITableViewCell类,可以对其进行自定义。 You can add some background images and text labels wherever you want by setting their frame, so that you can obtain a box like view that you want to have. 您可以通过设置边框来在需要的地方添加一些背景图像和文本标签,以便获得想要的类似视图的框。 Check out the documentation . 查看文档

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM