I have five view controllers that all inherits from one base view controller. My baseVC contains shared functions such as starting or stopping activity idnicator or checking for internet activity. The VCs looks like below
class BaseVC: UIViewController { }
class NewsFeedVC: BaseViewController { }
class MakePostVC: BaseViewController { }
class NotificationVC: BaseViewController { }
class MoreVC: BaseViewController { }
class CollectionVC: BaseViewController { }
My NewsFeedVC and NotificaitionVC (from the storyboard) are constructed by normal UIViewController with tableView dragged in. So this all works. However, I am thinking about changing these two VC from the storyboard to be UITableViewController instead of tableView dragged into viewController. The reason for that is becuase there were some bugs around pull to refresh causing tableView to jump if the tableView was constructed inside UIViewcontroller.
However, if NewsFeedVC and NotificationVC inherits from UItableViewController like below, I will not be able to use the functions inside BaseVC anymore. How can I structure this to achieve what I desire?
class NewsFeedVC: UITableViewController { }
class MakePostVC: UITableViewController { }