Git Product home page Git Product logo

Comments (7)

nfarina avatar nfarina commented on July 26, 2024

Hello,

It depends how you're handling the touch. Could you be more specific or share some code?

On Mar 14, 2013, at 9:39 AM, marcllucia [email protected] wrote:

How can I know if the user is touching the mapview "background" or touching the annotation?


Reply to this email directly or view it on GitHub.

from calloutview.

marcllucia avatar marcllucia commented on July 26, 2024

I'm using the function in the CustomMap Class:

  • (BOOL)gestureRecognizer:(UIGestureRecognizer *)gestureRecognizer shouldReceiveTouch:(UITouch *)touch;

But the function is called always, even when the user touches an annotation

from calloutview.

nfarina avatar nfarina commented on July 26, 2024

Why not attach the gesture recognizer directly to the element you with to know about? Also I believe some property of UITouch will tell you what element was touched.

On Mar 14, 2013, at 9:57 AM, marcllucia [email protected] wrote:

I'm using the function in the CustomMap Class:

(BOOL)gestureRecognizer:(UIGestureRecognizer *)gestureRecognizer shouldReceiveTouch:(UITouch *)touch;
But the function is called always, even when the user touches an annotation


Reply to this email directly or view it on GitHub.

from calloutview.

marcllucia avatar marcllucia commented on July 26, 2024

It is not really just one element, I want to know if the user touches the background map or any of the annotations displayed in the map

from calloutview.

incanus avatar incanus commented on July 26, 2024

@marcllucia, are you using MapKit or something else?

from calloutview.

marcllucia avatar marcllucia commented on July 26, 2024

I'm using MapKit

from calloutview.

nfarina avatar nfarina commented on July 26, 2024

@marcllucia Have you resolved this issue? If not, any more detail you can provide? I'd like to close this issue otherwise.

from calloutview.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.