TableShrinkCollapse is a project mainly written in OBJECTIVE-C and C, it's free.
This is a project which implements UITableView(iPhone) expand and collapse feature. It also incorporates the move/reorder the rows in the UITableView.