I am using STCollapseTableView for expand/collapse tableView cells. I've integrated it through cocoapods and imported it in Bridging-Header. In my VC:
class MyVC: UITableViewController {
override func viewDidLoad() {
super.viewDidLoad()
self.tableView = STCollapseTableView()
}
}
I have assigned the tableView to be STCollapsableTableView.
I am getting two issues:
self.tableViewis of typeUITableViewand not ofSTCollapsableTableView.- I am not able to call the functions defined in
STCollapsableTableViewlike- (void)openSection:(NSUInteger)sectionIndex animated:(BOOL)animated;I think that I have to subclass my current VC to be able to use these, but I am really not sure on how to do it.
I read this question, but it doesn't help me. I want to override UITableView with STCollapseTableView in MyVC and use all the methods defined in it. Also, MyVC has to be a subclass of UITableViewController because of structural dependency. Please suggest a way to achieve it.
I am using Swift 2.3