Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

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.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • SEARCH
  • Home
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 8647721
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 12, 20262026-06-12T13:08:19+00:00 2026-06-12T13:08:19+00:00

I was wondering how to create some type of recognizer for a rubbing gesture.

  • 0

I was wondering how to create some type of recognizer for a rubbing gesture.
You can see this gesture in Talking Tom Cat app and I would love to have this gesture in my clone of the app. Could you please guide me a little?

As I understand it, it is probably a swipe up and swipe down, however I don’t know how to implement it the same as in the Talking Tom Cat – that means, playing animation and sound while I am rubbing the character. (I know how to play sound and animation, just don’t know how to implement it with this gesture)

Also I am not sure, if it is better done by using UIGestureRecognizer or touchesBegan, Moved, Ended etc.

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-06-12T13:08:20+00:00Added an answer on June 12, 2026 at 1:08 pm

    You could try something like this:

    first add gesture recognizer where you are setting up the view.

    [myView addGestureRecognizer:[[UIPanGestureRecognizer alloc] initWithTarget:self action:@selector(handlePan:)]];
    

    Then add code to handle gestures.

    -(void)handlePan:(UIGestureRecognizer *)sender
    {
        if(sender.state == UIGestureRecognizerStateBegan) {
    
            [self startAnimation];
    
        } else if (sender.state == UIGestureRecognizerStateEnded) {
    
            [self stopAnimation];
        }
    }
    

    hope that helps.

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I was wondering if anyone here had some experience writing this type of script
Just wondering if anyone has some good resources for learning how to create new
I want to create a bidding system where user can see the current price
I've been struggling with this for the last hour or so, wondering if some
I am wondering if there is some way to rotate a created ABPeoplePickerNavigationController. I
I am wondering if I create an html email with image map, where it
I was wondering how to: create a droplet that saves to a relative filepath.
I was wondering how to create a strong key for AES-256 from the contents
I am wondering how to create my own SOA style messaging system, similar to
Hi I am wondering how to create dynamic drop down lists that get refined

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.