Comments (7)
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.
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.
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.
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.
@marcllucia, are you using MapKit or something else?
from calloutview.
I'm using MapKit
from calloutview.
@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)
- The current deployment target does not support automated __weak references HOT 2
- Xcode Warning when clear custom view set by another pin HOT 1
- Add support for tvOS MapKit 😊 added in 9.2 HOT 2
- animationDidStop delegate callback checks for finished HOT 3
- Crashing on CLLayer position contains NaN HOT 7
- Swift 3 support? HOT 1
- How to change the background HOT 1
- Content View Touch - weird behaviour HOT 2
- Crashing when annotation is selected programmatically in viewDidLoad
- Is it possible to increase the view height and allow a multiline subtitle? HOT 16
- Is it possible to add a touch event to the calloutview?
- convert to swift HOT 7
- Contentview with constraints fails HOT 1
- Using SMCalloutView wit Mapbox HOT 3
- Performance issues HOT 2
- Crash when tap near the screen edges HOT 3
- Increase Callout Popup delay HOT 5
- calloutView with AutoLayout
- Not issue but Question : Calloutview with Mapbox HOT 6
- Refresh callout view in calloutViewClicked HOT 1
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
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.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from calloutview.