在 iPhone 上更改 UITableViewController 的宽度 [英] Change width of UITableViewController on iPhone

查看:51
本文介绍了在 iPhone 上更改 UITableViewController 的宽度的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

有谁知道如何改变 uitableviewcontroller 的宽度?我在想也许我可以在界面生成器中完成,因为我无法在代码中弄清楚.

Does anyone know how to change the width of a uitableviewcontroller? I was thinking maybe I could do it in interface builder because I can't figure it out in the code.

谢谢!

推荐答案

视图控制器没有任何与其关联的大小属性(该信息存储在视图中).但是,您可以通过设置frame"属性或更新界面构建器中的属性(工具 > 检查器 > 大小)来更改 UITableView 的宽度.如果 UIView 中包含 UITableView,则应该能够在界面构建器中拖动以调整大小.

View controllers do not have any size attributes associated with them (that information is stored within the view). However, you can change the width of your UITableView by setting 'frame' property or by updating the properties in interface builder (Tools > Inspector > Size). If you have a UITableView contained within a UIView, you should be able to drag to resize in interface builder.

这篇关于在 iPhone 上更改 UITableViewController 的宽度的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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