Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add a method to get a view's adjusted contentOffset #1

Open
jonasman opened this issue Aug 12, 2013 · 1 comment
Open

Add a method to get a view's adjusted contentOffset #1

jonasman opened this issue Aug 12, 2013 · 1 comment

Comments

@jonasman
Copy link

Hi,

The contentOffset of a parallaxed SubView will be transformed depending of the acceleration.

It would be good to have a methd like this:

  • (CGPoint) adjustedContentOffsetForView:(UIVIew *)view;

And it would return the adjusted ContentOffset for that view
Something like:
self.contentOffset * Acceleration (X and Y)
or just:
subview.transform. (Tx and tY)

What do you guys think?

@BotiKis
Copy link
Contributor

BotiKis commented Aug 13, 2013

Hi,

Sure why not.
I don't really see a usecase for that since the convertPoint:fromView: and convertPoint:toView: methods of UIView are usally enough.
But why not if you say it would be a nice to have!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants