当前位置: 动力学知识库 > 问答 > 编程问答 >

ios - Scrolling horizontally in the tableview along with normal vertical scroll

问题描述:

I have a requirement which lists the Cricket players in a table view with thier names and their stats like the following

Name total 4's 6's 1's average

Tendulkar 231 O 6 5 3.6

Gangully 212 9 0 8 4.5

the total number of stats is like 8 to 10 , for that I have to make the stats horizantally scrollable, freezing the name. Can anyone explain me how to acheive this in a table view for iPhone sdk.

My question is, is it possible to scroll horizontally in the tableview freezing a single column, Please help me with an example.

网友答案:

Technically it's possible. You need to make UIScrollView a subview in your UITableViewCell. Configure the scrollview to scroll only horizontally. Put data in it & set the content size...

Not sure about the performance implications of this on your tableView (vertical) scroll. This depends on the data in your horizontal scroll...

分享给朋友:
您可能感兴趣的文章:
随机阅读: