开发者

Scrolling to Last Table View Cell Shows First Cell's Data

I am using UITableVie开发者_Python百科w with Griding Functionality. When scrolling, at the last column it automatically comes at First cell. What should I do to resolve this problem?


It sounds like you're looping your data source.

A tableview has some data structure that provides both the data and the structure of that data so that the data is ordered into rows. The simplest data structure would be an array. The first row would display info at array element zero, the second row at array element 1 and so on.

If the last row of the table displays data from first row, then you have somehow looped the array index back to zero. I can't say exactly how you've done that without seeing the code.

0

上一篇:

下一篇:

精彩评论

暂无评论...
验证码 换一张
取 消

最新问答

问答排行榜