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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 15, 20262026-05-15T09:38:33+00:00 2026-05-15T09:38:33+00:00

Greets. A somehow detailed explanation on my problem, and what I have already done,

  • 0

Greets. A somehow detailed explanation on my problem, and what I have already done, and what I cannot do.

I want to create a behavior resembling the one in the iPhone’s keyboard. Basically, I want a view to appear when the user taps a button and WHILE the user taps that button.

This, I accomplished.

When the user lets go of the button WHILE his finger is on that button’s area, I want to trigger an action “doing stuff”.

This, I was also able to do.

Since all the buttons are near (like in the keyboard) and I don’t want the user to select other button than the one he pressed, I reduced the hit area for the button using the –(BOOL)pointInside:(CGPoint)point withEvent:(UIEvent )event function.

When the user presses the button, not lifting its finger, and dragging outside the button area, I want another action to trigger. This is the first problem… This function only triggers when the user’s finger is far from the buttons’ area, and this time the pointInside function is not being my friend. How can I detect the user finger “left” the button area the moment it exits its bounds?

This, in case you didn’t realize… was problem 1.

The second problem is related with the drag enter. Again, I need to limit the area like in the drag exit. But I suppose that when I solve one of these, the other is the same. The problem is that in order to have a behavior like in the keyboard, I may need to detect the user started the touch in another button, never lifted his finger, and changed to another button. I can detect drag enter and drag exit IN THIS ORDER while on the same button. I cannot detect drag enter when the user first touched anywhere else other than the button where I want to detect the drag enter event. Basically what I need is to detect touch on any button (and not anywhere else in the view), and while the user is changing buttons without lifting the finger, I want to detect the new button being touched.

This gigantic paragraph was problem #2.

Any help, as you might guess, is highly appreciated.

Best Regards.
Thanks a lot!

  • 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-05-15T09:38:35+00:00Added an answer on May 15, 2026 at 9:38 am

    Solved.

    I used a custom UIButton class. Then, in

    • (void)touchesBegan:(NSSet *)touches withEvent:(UIEvent *)event

    • (void)touchesMoved:(NSSet *)touches withEvent:(UIEvent *)event

    • (void)touchesEnded:(NSSet *)touches withEvent:(UIEvent *)event

    I test if the touch occurred in that custom UIButton. And if it did, I act accordingly.

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

Sidebar

Related Questions

I have a Javascript greeting that greets new users with a drop down banner
I have created a simple Facebook application in PHP, that greets user by there
Greets to all! I want to describe each kind of product by a class:
i would play a bit with Ruby. Now i have a little problem, which
Greets, I'm currently working on a website and have stumbled upon some layout difficulties.
I am new to vaadin and have a databinding problem. I have posted allready
I want to handle files in my iOS App. My app should create a
Here is the Problem: Lets say I have something like this: <div id=leftcontainer> <div
I want two NSInteger year, month to go one month back. e.g. now is
I'm using Matlab 7 and have a problem in creating a monoflop which shall

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.