Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Touch MapView #35

Closed
marcllucia opened this issue Mar 14, 2013 · 7 comments
Closed

Touch MapView #35

marcllucia opened this issue Mar 14, 2013 · 7 comments

Comments

@marcllucia
Copy link

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

@nfarina
Copy link
Owner

nfarina commented Mar 14, 2013

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 notifications@github.com 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.

@marcllucia
Copy link
Author

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

@nfarina
Copy link
Owner

nfarina commented Mar 14, 2013

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 notifications@github.com 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.

@marcllucia
Copy link
Author

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

@incanus
Copy link
Contributor

incanus commented Mar 14, 2013

@marcllucia, are you using MapKit or something else?

@marcllucia
Copy link
Author

I'm using MapKit

@nfarina
Copy link
Owner

nfarina commented Apr 24, 2013

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

@nfarina nfarina closed this as completed Feb 11, 2014
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants