I used scrollview in my project for zoom. There is a view in scrollview. I can zoom using scrollview’s delegate. Can I rotate my view using scrollview delagete, Or shall I use UIPinchGestureRecognizer?
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.
UIScrollViewalready has a UIPinchGestureRecognizer for zooming and UIPanGestureRecognizer for panning (and has properties to access these). I shouldn’t need to use theUIScrollViewDelegatefor nominal zooming or panning. You just need to set the minimum and maximum zoom, and panning content size. E.g.,