调整分组的UITableView中的单元格宽度 [英] Adjust cell width in grouped UITableView

查看:47
本文介绍了调整分组的UITableView中的单元格宽度的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我有一个UITableView(分组样式),我想调整单元格的宽度,以使侧面的填充物更少.我希望单元格占据表格视图的整个宽度(如普通样式的表格视图).

I have a UITableView (grouped style) and I would like to adjust the width of the cells such that there is less padding on the sides. I want the cells to occupy the full width of the table view (like the plain style tableview).

推荐答案

我认为您不能使用UITableView的分组样式.但是,您可以使用普通样式,并创建自己的视图以将其显示为单元格,就像分组视图一样.

I think you can't with the grouped style of the UITableView. You could however use the plain style, and create your own view to show as the cell, just like the grouped view.

这篇关于调整分组的UITableView中的单元格宽度的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆