Change width of UITableViewController on iPhone

橙三吉。 提交于 2019-12-24 07:57:09

问题


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.

Thanks!


回答1:


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.




回答2:


I don't think it makes sense to change the width of a View Controller. I think you want to change the width of a view, like UITableView.



来源:https://stackoverflow.com/questions/2410494/change-width-of-uitableviewcontroller-on-iphone

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!