Mord Fustang
Mord Fustang

Reputation: 1553

Why can't change button width in UITableViewController

I have added a simple button to a tableview controller, I use grouped tableview cells so I want button to be the same width as cells.

enter image description here

For simplicity I opened view options of button on IB, inspector. I can change the height but width turns to 768 when I try to change it.

enter image description here

I dont wanna use tableviewfooter because I need button before and after any sections is generated. If I add button to view button does not stay beneath table view rows.

How can I change the width of the button? Or another method to add button beneath all sections and cell of tableview that will also appear when there is no cells or sections?

Upvotes: 1

Views: 406

Answers (1)

SpaceDust__
SpaceDust__

Reputation: 4914

Just delete that button and drag and drop a uiview to same position. Once you have your UIView you should be able to add what UIelements inside of that UIview

enter image description here

Upvotes: 2

Related Questions