P
P
pryaniq2015-06-10 21:53:11
Swift
pryaniq, 2015-06-10 21:53:11

How to implement AccordionMenu in UITableViewCell?

There is a TableView with Static Cells. There are three TableViewCells in total. It is necessary that initially only two TableViewCell cells are visible on the screen, and when you click on the element with the 1st cell (for example, on a button), a third cell should appear, located between the 1st and 2nd, containing some kind of PickerView.

Answer the question

In order to leave comments, you need to log in

1 answer(s)
S
Shannon, 2015-06-18
@pryaniq

As an option, initially create all 3 cells in IB, setting everything there as it should, and then hide the middle one at startup using tableView(_:heightForRowAtIndexPath:) specifying hidden = true and height = 0 for the desired cell. When you need to show it again, set the desired height and hidden through animateWithDuration (so that the animation is)

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question