简体   繁体   中英

How to scroll to specific section in UITableView (or ListView of android) and update on bar?

I want to scroll to a specific section and update the status selected on a bar like a tab in TableView

在此处输入图片说明

So when I select "11/2013" on the tab or scroll down to the "11/2013" section, it would update the status according to what is selected:

在此处输入图片说明

Let's try this method of UITableView

 - (void)scrollToRowAtIndexPath:(NSIndexPath *)indexPath atScrollPosition:(UITableViewScrollPosition)scrollPosition animated:(BOOL)animated;
 //indexPath (row,section)

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM