IPHONE - number of row being shown

Posted by Mike on Stack Overflow See other posts from Stack Overflow or by Mike
Published on 2010-06-07T20:56:59Z Indexed on 2010/06/07 21:02 UTC
Read the original article Hit count: 315

Filed under:
|
|
|

I have a table inside a UIImageView. The table occupies the entire UIImageView. The table contains a series of images. Scroll and paging are enabled. As the table size is the same of its parent view, I can see just one cell of the table at a time.

When I roll the table, I see the next or previous cell.

I have a variable that must contain the number of the row being shown, but how can I make this table update the variable. I can see that I can use the didSelectRowAtIndexPath to change the variable when the cell is selected, but this is not the case. I need to update the variable when the table is rolled.

I want to do the same thing I could do using a UISCrollView and scrollViewDidScroll:, but even if this is possible, I would have to know the number of the row that is visible.

How can I do that?

thanks.

© Stack Overflow or respective owner

Related posts about iphone

Related posts about iphone-sdk