I would like to scroll my UITableView 2 cells down when clicking on a button. The total height for the shift downwards is 100px. How can I accomplish this?
+1
A:
Set the contentOffset
property.
[aTableview setContentOffset:CGPointMake(0,100)];
Tom Irving
2010-05-25 15:51:38
+4
A:
If you know what cell you want to scroll to use scrollToRowAtIndexPath:atScrollPosition:animated:
otherwise use the contentOffset property or scroll by pixels http://developer.apple.com/IPhone/library/documentation/UIKit/Reference/UIScrollView_Class/Reference/UIScrollView.html#//apple_ref/doc/uid/TP40006922-CH3-SW26
Andiih
2010-05-25 15:52:54