Hello guys,
I'm setting custom view on tableheaderview, but I want to scroll tableview at top of the position.
I'm setting custom view on tableheaderview, but I want to scroll tableview at top of the position.
NSIndexPath *indexPath = [NSIndexPath indexPathForRow:0 inSection:0]; [self.tableView scrollToRowAtIndexPath:indexPath atScrollPosition:UITableViewScrollPositionNone animated:NO];But from above piece of code, I only see my tableview row & section, tableheaderview part is missing. So, I did a trick given below:
[self.tableView scrollRectToVisible:CGRectMake(0, 0, 1, 1) animated:NO];
No comments:
Post a Comment