How much difference you find between scrollview offset and contentview offset of table?

Posted by neha on Stack Overflow See other posts from Stack Overflow or by neha
Published on 2010-05-27T10:49:27Z Indexed on 2010/05/27 10:51 UTC
Read the original article Hit count: 248

Hi all,

In my application, I want to detect the end of the entire table with scrollview. Since there're no sections in my scrollview, I'm using noOfRows*rowHeight to reach the end. I'm using scrollview.contentOffset.y to detect the y offset, but this contentOffset isn't matching the multiplication result i.e. I have 20 rows and with height as 250. So it comes as 5000, but my scrollview.offset.y at the end of last cell is nearly about 4650.

What's this difference?

Thanx in advance.

© Stack Overflow or respective owner

Related posts about iphone

Related posts about iphone-sdk