Become a MacRumors Supporter for $50/year with no ads, ability to filter front page stories, and private forums.

Molten

macrumors newbie
Original poster
Hey, I've got a question for you all.

Question
How do i determine whether or not a rect is in my scrollviews 'viewing zone' (bounds?) ?

background.
So i got a big scrollview, and i've got a rectangle in my scrollview. I want a function to start whenever that rectangle is in the view of my scrollview.

really appreciate any help 🙂
 
Ok, i figured it out... so easy that i'm embarrassed..

CGRectIntersectsRect( myRect.frame, myScrollview.bounds);

BUT!, this put me in another situation, the bounds of my scrollview doesn't change with zooming. so the intersection will only happen if the original sized bounds intersects.. (upper left corner of my (out)zoomed scrollview)
 
Register on MacRumors! This sidebar will go away, and you'll see fewer ads.