1

I have bar chart view where i can scroll the bars.And I have tableview such that when im scrolling the barchart simultaneously tableview should scroll.Just give idea to do with touch or gesture methods.

4

2 回答 2

0

Refer scrollToRowAtIndexPath:atScrollPosition:animated method in UITableView class reference.

I guess this method will help you for your requirement which you mentioned.

于 2013-03-12T11:44:49.897 回答
0

当您滚动条时,接受事件并调用此方法:

[tableView scrollToRowAtIndexPath:[NSIndexPath indexPathForRow:10 inSection:indexPath.section] 
         atScrollPosition:UITableViewScrollPositionMiddle animated:NO];
于 2013-03-12T11:45:05.937 回答