Reputation: 1553
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.
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.
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
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
Upvotes: 2