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 8572865
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 11, 20262026-06-11T19:07:18+00:00 2026-06-11T19:07:18+00:00

I am creating an app in which I am allowing user to touch above

  • 0

I am creating an app in which I am allowing user to touch above the line OR path. I want to do something like the user should be able to tap around 20 pixels of the line. I’ve googled a lot but found nothing.

  • 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-11T19:07:19+00:00Added an answer on June 11, 2026 at 7:07 pm

    Following is a piece of code from one of my programs: Here I have done something similar. A image appears wherever the user taps on the screen. I have limited the screen to certain areas, only where a tap will be registered. Hope this helps you:!!

    -(void) touchesBegan:(NSSet *)touches withEvent:(UIEvent *)event {
    
    
      UITouch *touch = [[event allTouches] anyObject];
         CGPoint location = [touch locationInView:touch.view];
        image=[UIImage imageNamed:@"anyImage.gif"];
        newView = [[UIImageView alloc]initWithImage:image];
        if (location.y<117 || location.y>354)
        {
            newView.frame = CGRectMake (location.x, location.y,87,70);
            newView.center=location;
            [self addSubview:newView];
    
        }
    
        if (location.y<90)
        {
            if(location.y>85)
            {
                if (location.x>133 || location.x<183)
                {
    
                    [self shakeA]; //A method shakeA is called
    
                }
            }
        }
        else if (location.y<360)
        {
            if (location.y>354)
            {
                if (location.x>133 || location.x<183)
                {       
                    [self shakeB]; // Method shakeB called
    
                }
            }
        }
    }
    
    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I'm creating a Facebook app in which I want to display content depending on
I'm creating an app which has the ability for the user to pin a
I am creating an app which needs to be opened if a user double
I am creating an iPhone app which I would like to have a similar
i am creating app which would download and save files, than user could use
I'm creating an app which allows the user to manipulate a table structure by
I'm creating an app which communicates alot with a server. I want to make
I am creating an app in which on clicking on button user can send
i am creating an app in which i want to take xmldata using webservices.
I am creating an app which requires internet. I want to use reachability class

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.