What I want to do is an horizontal scroll view with buttons inside and when A button came at the center of the screen it became bigger. How can I do this?
Share
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.
Intercept the delegate method for scrollViewDidScroll: and monitor the scrollviews contentOffset. Doing so will allow you to make any adjustments each time the scrollview moves. As your button.center moves closer to your scrollviews center, increase its frame.size. Be sure not to do anything overly complex in scrollViewDidScroll bc it will be called a lot.