bennyguitar / CollapseClick

A collapsible list that functions like a UITableView, except you can collapse and open cells on a click. Feed it UIViews for what is shown when each cell is open. Works via delegation similar to UITableView.
MIT License
533 stars 83 forks source link

Set cell open or closed on load #1

Closed chaseacton closed 11 years ago

chaseacton commented 11 years ago

I have two cells in my CollapseClick table. How can I set one to be open by default?

bennyguitar commented 11 years ago

I added four new methods to CollapseClick.h/.m

These methods include openCollapseClickCellAtIndex:(int) animated:(BOOL) and closeCollapseClickCellAtIndex:(int) animated:(BOOL), as well as their counterparts for opening/closing multiple cells at once. To open multiple, you pass in an NSArray of NSNumbers corresponding to the indexes you would like to manipulate. Hope this helps you out, and thanks for raising the issue.