yy20111011659 / route-me

Automatically exported from code.google.com/p/route-me
0 stars 0 forks source link

maker label view with multiple layers will not trigger touch delegate methods #39

Open GoogleCodeExporter opened 8 years ago

GoogleCodeExporter commented 8 years ago
What steps will reproduce the problem?
1. create a view with subviews in it
2. assign that view as a marker label view
3. touches on the visible marker label view do not trigger 
tapOnLabelForMarker:onMap

What is the expected output? What do you see instead?
I would assume the entire view hierarchy would be clickable

What version of the product are you using? On what operating system?
r192, 10.5

Please provide any additional information below.

the patch changes the touch handling in RMMapView.m to address this case

Original issue reported on code.google.com by oso...@gmail.com on 6 Feb 2009 at 1:11

Attachments:

GoogleCodeExporter commented 8 years ago
Dupe of Issue 41. Fixed by r204.

Original comment by halmuel...@gmail.com on 27 Feb 2009 at 12:34

GoogleCodeExporter commented 8 years ago
I don't think that this issue is fixed.  I am on r346 and using custom UIViews 
(loaded from a nib) as RMMarker 
labels and did not get the tapOnLabelForMarker:onMap message until I applied 
this patch to my local version.

Original comment by matthew....@gmail.com on 14 Mar 2009 at 9:42

GoogleCodeExporter commented 8 years ago
Could you please make a copy of SimpleMap, and modify it to replicate the bug? 
Zip up your project and attach it 
as a comment.

Original comment by halmuel...@gmail.com on 14 Mar 2009 at 10:01

GoogleCodeExporter commented 8 years ago
You should also try your code against the Issue 59 branch.

Original comment by halmuel...@gmail.com on 14 Mar 2009 at 10:18

GoogleCodeExporter commented 8 years ago
Here you go.  To replicate more closely my scenario, I hid the label then show 
it when you touch the marker.

Original comment by matthew....@gmail.com on 14 Mar 2009 at 11:54

Attachments:

GoogleCodeExporter commented 8 years ago
I am finding that tapOnLabelForMarker is not getting called when I set the 
label to a custom UIWebView.   Clearly, 
the UIWebView ( when set to the label ) is not showing as a subclass of 
RMMarker and so the call does not get 
triggered.  If I set the label to be simple text then the tapOnLabelForMarker 
delegate does get called.

Original comment by macegh...@gmail.com on 24 Aug 2009 at 11:18

GoogleCodeExporter commented 8 years ago
Any news about this one ?

Original comment by GShoCKo...@gmail.com on 24 May 2010 at 10:51

GoogleCodeExporter commented 8 years ago
there is one way to work around the issue is:
you can still use UIView (or subclass it) as you want but draw all your 
sub-views manually. (write your own DrawRect) 

Original comment by Char...@redrobotlabs.com on 19 Sep 2011 at 8:51