Ask Your Question
3

How can I make the UIToolBar in Swift Storyboard UITableView Static Cells to appear when I scroll down?

asked 2023-07-13 16:34:04 +0000

ladyg gravatar image

edit retag flag offensive close merge delete

1 Answer

Sort by ยป oldest newest most voted
3

answered 2023-07-13 16:40:02 +0000

plato gravatar image

You can achieve this by adding the UIToolbar to the table view's footer view, which will cause it to appear at the bottom of the table and move up as you scroll down. Here are the steps to do this:

  1. Open your storyboard and select the table view controller with the static cells.
  2. Click on the table view to select it, then go to the Attributes Inspector (the fourth icon from the right in the top panel).
  3. Scroll down to the "Table View" section and expand the "Table View" dropdown.
  4. In the "Table Footer View" dropdown, select "Toolbar".
  5. Click on the newly added toolbar to select it.
  6. In the Attributes Inspector for the toolbar, you can customize its appearance and add any buttons you need.

Now when you run your app and scroll down, the toolbar will stay at the bottom of the screen and move up with the table view.

edit flag offensive delete link more

Your Answer

Please start posting anonymously - your entry will be published after you log in or create a new account. This space is reserved only for answers. If you would like to engage in a discussion, please instead post a comment under the question or an answer that you would like to discuss

Add Answer


Question Tools

Stats

Asked: 2023-07-13 16:34:04 +0000

Seen: 10 times

Last updated: Jul 13 '23