Plan B Plan B - 1 year ago 365
iOS Question

How to put buttons over UITableView which won't scroll with table in iOS

I want to put buttons over

which stays on same position of screen, won't scroll with
. When I tried to
buttons, they are displayed but scrolls with

Reason to put buttons over
is to let user operate some action on it. I'm not talking about having buttons in cell. They are floating buttons which never moves their position.

I'm using
, and I don't want to use header or footer for this purpose. And also another some bar (
for instance) is not an option for me.

Thanks in advance.

Answer Source

One solution to this is to extend UIViewController instead of UITableViewController. You will need to add your own table view and set everything up. Then you can add your button's to the view controller's view instead of the table view.

Recommended from our users: Dynamic Network Monitoring from WhatsUp Gold from IPSwitch. Free Download