I am creating an iPhone application and I have a UIScrollView. I’d like to ask how to detect that the imageview is in the middle of the page to display its label below the UIscrollview.
Thanks!
Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.
Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.
Lost your password? Please enter your email address. You will receive a link and will create a new password via email.
Please briefly explain why you feel this question should be reported.
Please briefly explain why you feel this answer should be reported.
Please briefly explain why you feel this user should be reported.
hmm, you’d have to make your class conform to the
UIScrollViewDelegatethen use:– scrollViewWillBeginDragging:to set an NSTimer to run a method which will check ifmyImage.center == myScrollView.centerand then use– scrollViewDidEndDecelerating:to stop the timer.