I am creating an application that uses UIScrollView. I have to find out that when the user reaches the end of content It works fine when talking about the left side. Here's my code:
if ([scrollView contentOffset] .x I wish I could say this about the right side. An NSLog released me the problem
NSLog (@ "Off% F, Content % F ", [scrollView contentOffset] .x, [scrollView contentSize] .width); When I scroll to the extent of the content, I see:
2011-03-16 14: 24: 40.920 DigiBai [1774: 707 ] 627.000000 off, content 1106.286011
Does anyone know a good solution for that?
Thanks in advance.
The content offset is measured from the left edge of the scroll view contents, in this case, the width of the content and The difference between content offset is about 480 pixels, possibly the width of your scroll view when you are checking the right edge, then just add the width of the Scroll View border to offset content.
Comments
Post a Comment