Open GoogleCodeExporter opened 9 years ago
Hello, I have the same problem in ios5.
Any solution??
I need a urgent solution to this issue.
Thanks.
Original comment by serhats...@gmail.com
on 2 Feb 2012 at 1:17
I found a temporary fix for that. You can delete MarkerView touch events and
overwrite touch envets for AugmentedViewController.
- (void)touchesEnded:(NSSet *)touches withEvent:(UIEvent *)event {
UITouch *touch = [touches anyObject];
CGPoint currentTouch = [touch locationInView:self.view];
int index = 0;
for (PoiItem *item in ar_coordinates) {
MarkerView *viewToDraw = [ar_coordinateViews objectAtIndex:index];
CGPoint loc = [self pointInView:ar_overlayView forCoordinate:item];
float width = viewToDraw.bounds.size.width * scaleFactor;
float height = viewToDraw.bounds.size.height * scaleFactor;
viewToDraw.frame = CGRectMake(loc.x - width / 2.0, loc.y-height / 2.0, width, height);
CGFloat began_x = loc.x - width / 2.0;
CGFloat began_y = loc.y-height / 2.0;
CGFloat end_x = began_x + width;
CGFloat end_y = began_y + height;
if (currentTouch.x >= began_x && currentTouch.x <= end_x && currentTouch.y >= began_y && currentTouch.y <= end_y) {
NSLog(@"Touched item catched = %@", viewToDraw.yourAttribute);
break;
}
index ++;
}
}
Original comment by serhats...@gmail.com
on 2 Feb 2012 at 8:04
Not Work :(
Any solution??
I need a urgent solution to this issue.
Thanks.
Original comment by voyage...@gmail.com
on 29 Mar 2012 at 2:20
I'm not objective-c expert,
but base on my understanding,
there has to be a check point when user click (in function touchEnded)
that calls
-(BOOL)checkIfDataSourceIsEanabled: (NSString *)source;
and (if that does't work) check the coordiante manually with
- (BOOL)isEqualToCoordinate:(PoiItem *)otherCoordinate;
Regards.
Original comment by DevBinn...@gmail.com
on 12 May 2012 at 7:28
Are there any solution about the problem working?
Original comment by adrigr...@gmail.com
on 18 Apr 2013 at 12:19
Original issue reported on code.google.com by
fiveflam...@gmail.com
on 28 Dec 2011 at 7:16