I am creating a application in I have a home screen. On that home screen I have a button titled “continue”.
Now I want to load a new view with that button’s click. I had successfully done this. On that new view I have a UITable and a navigation bar. Now I want 2 or 3 buttons beneath the table View.
I do not to create custom cell. I want to done this through footer view and load new views from that buttons.
Also I have created a Custombutton which I replace like this cell: accessaryView = mycustombutton, but I want to set the button at the very end of cell. There is some space left behind in the cell. How do I create a square button which hides the accessaryView completely and the button ends where tablecell ends.
The TableView has a method to return the view for the footer of a table/section instead of plain text.
You could implement this method and create your own view with 2 buttons. Then return the view.
These are the methods you should be looking at implementing for creating a footer for a section
And this property of tableView for creating a footer for the whole table
As for the accessory, by default an accessory created will leave some space at the end, even when using custom accessories. An alternative is to add the custom button to the cell’s content view instead of setting it as an accessory
But this will create problems if you allow editable cells (you will have to either change the button’s position when table is editing or hide it – which is automatically handled for you with an accessory view)