I want to show UIPanGestureRecognizer(Panning effect) on UIImageView without touch event.
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.
From what I’ve gathered through your comments:
What you need is to encapuslate several UIImageViews within a UIScrollView. Then you’d need to enable Scrolling on the ScrollView but disable User Interaction. You can do this through the XIB.
Then you’d need to set up an NSTimer and in the handler function add an animation as below:
FYI A UIPanGestureRecognizer actually recognises the touch and sweep left/right movement. You can pan an image or a view or anything by moving it’s coordinates in an animation block as above; but it’s got nothing to do with UIPanGestureRecognizer because that controls the actual touch event.