iphone - inside API scrollViewDidScroll , shows sender correct but sender.contentSize is showing null while calculating page number -


I want to see the page number in the scroll view, which contains the uiimage view.

Within the method, code> - (zero) scrollwididcroll: (UIScrollView *) sender

The sender value on this logging looks correct, that is, about the scroller Everything is fine,

But when I use sender.contentOffSet.x then it appears zero

thanks.

- (zero) scrollViewDidEndDecelerating: (UIScrollView *) ScrollView

If defaultSize is zero then default value .. .. See the following details from Apple documentation.

contentOffset At that point where the origin of the content footage is offset by the origin of the scroll view, the discussion is default CGPointZero.
contentSize content size of size
discussion is the unit number of the size Default size CGSizeZero is the related sample code quartzodo

Comments

Popular posts from this blog

mysql - BLOB/TEXT column 'value' used in key specification without a key length -

c# - Using Vici cool Storage with monodroid -

python - referencing a variable in another function? -