Atma
Atma

Reputation: 29805

Change width of UITableViewController on iPhone

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!

Upvotes: 1

Views: 1843

Answers (2)

Kevin Sylvestre
Kevin Sylvestre

Reputation: 38092

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.

Upvotes: 2

Rob Jones
Rob Jones

Reputation: 4985

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.

Upvotes: 2

Related Questions