Skip to content

This is an example application which shows how to do dropdown menu in UITableViewCell like it is done in Tweetbot. Written in Swift.

Notifications You must be signed in to change notification settings

VitaliyR/swift-tableview-dropdown-menu-example

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

3 Commits
 
 
 
 
 
 

Repository files navigation

UITableView with Dropdown cell (like in Tweetbot)

This is an example application which shows how to do dropdown menu in UITableViewCell like it is done in Tweetbot. Written in Swift.

Goals

  • When a user taps on cell, additional view in UITableViewCell containing buttons unfolds with animation under the cell. When a user taps it again, or taps on another cell - current cell should fold and new one unfolds.
  • When a user has selected the cell and scroll the table - the selected cell should be persisted and correctly redrawed when user will scroll back to it.
  • When a user unfolds a cell's dropdown menu and there are not enough space on the screen to fit it - the view should scroll to fit the entire cell with unfolded menu.

Technical Goals

  • Autolayout
  • As little as possible count of bicycles in the code :)

Result

Read more

Link to the article in my blog

About

This is an example application which shows how to do dropdown menu in UITableViewCell like it is done in Tweetbot. Written in Swift.

Topics

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages