ios - Smooth UITableView Cell Expansion With Accordion Style -
my table view can expand , collapse cells when pressed, content appears when cell expands loads before animation finished. what left this: what this example . content appears if behind curtain , cell expansion animation reveals it. here code controls table view: class historyviewcontroller: uiviewcontroller, uitableviewdatasource, uitableviewdelegate{ var expandedindexpath: nsindexpath? // index path of cell expanded let collapsedheight: cgfloat = 44.0 // constant set default collapsed height var tickethistoryservice = tickethistoryservice() // service gather info ticket history coredata var tickets = [ticket]() @iboutlet var tableview: uitableview! override func viewdidload() { super.viewdidload() // remove appended table view cells tableview.tablefooterview = uiview() self.tickets = self.tickethistoryservice.fetchdata() // load inital data } // mark: - table view methods func tableview(tablevie...