I am using PPRevealSideViewController. I have two ViewControllers in it. The middle one is a subclass of SideSwipeTableViewController and the left one is a subclass of UIViewController, that has a tableView inside it. Example apps for PPRevealSideViewController and SideSwipeTableViewController are both supporting scrollsToTop property for UITableView at least for the TableView that is in the mid of PPRevealSideViewController. But when I use both of these classes, scrollsToTop stops working.
I know this is similar question, but I have tried everything, I have read all posts, that google gives me about this problem, but still couldn't solve it. So I decided to ask it here, I don't have any ideas even what to do, to make scrollsToTop work.
self.window.rootViewController = self.revealSideViewController;
Where
- (PPRevealSideViewController *)revealSideViewController
{
if (! _revealSideViewController) {
_middleTableViewController = [MiddleTableViewController new];
UINavigationController *middleNavController = [[UINavigationController alloc] initWithRootViewController:_middleTableViewController];
_revealSideViewController = [[PPRevealSideViewController alloc] initWithRootViewController:middleNavController];
_revealSideViewController.delegate = self;
}
return _revealSideViewController;
}
- (void) preloadSidePanel
{
AppDel.systemTableViewController = [SystemTableViewController new];
AppDel.systemTableViewController.parent = self;
[self.revealSideViewController preloadViewController:AppDel.systemTableViewController
forSide:isLeftHanded ? PPRevealSideDirectionLeft : PPRevealSideDirectionRight
withOffset:_offset];
}
And I set in this systemTableViewController this:
_tableView = [[UITableView alloc] initWithFrame:frame style:UITableViewStylePlain];
[self.view addSubview:_tableView];
_tableView.scrollsToTop = NO;
However, it doesn't help.