I am inserting a new section (the section contains 3 cells) at the top of the UITableView while SCROLLING TOP.
[_mainTable beginUpdates]; [_mainTable insertSections:[NSIndexSet indexSetWithIndex:0] withRowAnimation:UITableViewRowAnimationNone]; [_mainTable endUpdates];
The section rises correctly. But I need the top of the table ie Cell 0 or row 0. I want this transaction to be smooth. I can insert
[_mainTable scrollToRowAtIndexPath:[NSIndexPath indexPathForRow:1 inSection:1] atScrollPosition:UITableViewScrollPositionBottom animated:NO];
after endUpdates, but it shows a quick jerk because it takes up the top of the table and then unexpectedly scrolls it to the last position.
How can I make it smooth.
thanks
ios uitableview
Mann
source share