callout

Annotation callout title does not change

跟風遠走 提交于 2020-01-23 19:01:30
问题 I have searched but i didn't found any solution to my problem. I want to change already added pin. And here is my code. I'm getting "Code Here" in console. I have in .h - (void)mapView:(MKMapView *)mapView didSelectAnnotationView:(MKAnnotationView *)annotationView; myViewController.m - (void)mapView:(MKMapView *)mapView didSelectAnnotationView:(MKAnnotationView *)annotationView { userPins *myAnnot = (userPins *)annotationView.annotation; [myAnnot setTitle:@"o21"]; NSLog(@"Code here!"); } -

How can I customize the title/subtitle font in callout from MKAnnotationView or just hide them?

♀尐吖头ヾ 提交于 2019-12-22 06:01:23
问题 I have a view to a calloutDetail: annotationView.detailCalloutAccessoryView = mapInformationView.view It is working just fine, but I don't want to display a title/subtitle, just my custom view. But when I left title/subtitle empty the callout isn't displayed. So, How can I hide them or just change their font size and name? 来源: https://stackoverflow.com/questions/33847133/how-can-i-customize-the-title-subtitle-font-in-callout-from-mkannotationview-or

How can I customize the title/subtitle font in callout from MKAnnotationView or just hide them?

可紊 提交于 2019-12-22 06:01:13
问题 I have a view to a calloutDetail: annotationView.detailCalloutAccessoryView = mapInformationView.view It is working just fine, but I don't want to display a title/subtitle, just my custom view. But when I left title/subtitle empty the callout isn't displayed. So, How can I hide them or just change their font size and name? 来源: https://stackoverflow.com/questions/33847133/how-can-i-customize-the-title-subtitle-font-in-callout-from-mkannotationview-or

Detect tap on title of callout

一世执手 提交于 2019-12-20 03:02:10
问题 how do I detect a tap on the title of a callout of a annotation? I already have a right callout accessory and a left one, but I want to detect if a user taps on the title (which is in the center on the callout). If this is not possible, how do I disable hiding the callout if I tap on the title? 回答1: it's little late to the answer your question but I'm dealing with same kind of problem recently and make my solution by my self with trial and error. maybe I can help someone who dealing with same

asciidoc: how to add callouts asciidoc to image

≯℡__Kan透↙ 提交于 2019-12-11 01:09:27
问题 How can i add callouts to images like in docbook ? See an example here: http://norman.walsh.name/2006/06/10/imageobjectco The callout points can be drawn on the image, but when i try to generate document from this: image::img/stg.png[width=400,align="center"] <1> Blabla. <2> Foobar. <3> Aknathnaratnathgarat. ... it drops an error: asciidoc: WARNING: manual.adoc: line 580: no callouts refer to list item 1 asciidoc: WARNING: manual.adoc: line 581: no callouts refer to list item 2 asciidoc:

How to make whole call out tappable?

这一生的挚爱 提交于 2019-12-08 12:04:09
问题 I have added annotation on map and added title, leftCalloutAccessoryView (ImageView), and rightCalloutAccessoryView (UIButton), When tap on button it plays audio, I want instead of tapping on button when i will top on callout any area it starts playing audio. func mapView(mapView: MKMapView, viewForAnnotation annotation: MKAnnotation) -> MKAnnotationView? { var annotationView = mapView.dequeueReusableAnnotationViewWithIdentifier("AnnotationImage") if annotationView == nil { if annotation

iOS distinguish between which callout accessory is tapped

笑着哭i 提交于 2019-12-01 03:07:35
问题 In my map annotations, I have a UIButton as each accessory view in the callouts. In the - (void)mapView:(MKMapView *)mapView annotationView:(MKAnnotationView *)view calloutAccessoryControlTapped:(UIControl *)control method, how do I figure out which accessory view was touched to handle each the events? Here's my code: -(MKAnnotationView *)mapView:(MKMapView *)mapView viewForAnnotation:(id<MKAnnotation>)annotation { if ([annotation isKindOfClass:[MKUserLocation class]]) return nil;

Custom info window in IOS google maps sdk

喜你入骨 提交于 2019-11-29 15:09:07
being a newby IOS developer, I'm really struggling to get something basic to work. I have a need to display this kind of custom info window upon a marker click in the google maps sdk for ios. Any help would be appreciated. I've already seen the third party components, but even with them I cannot get this to display. There is always a title, snippet, left image and right image part. The real question is how do you get the gold star rating in the window, with the text next to it. Naresh Reddy M I was suffering from the same problem of Info window customization in GoogleMapsSdk for iOS for a lot

Custom info window in IOS google maps sdk

依然范特西╮ 提交于 2019-11-28 08:47:38
问题 being a newby IOS developer, I'm really struggling to get something basic to work. I have a need to display this kind of custom info window upon a marker click in the google maps sdk for ios. Any help would be appreciated. I've already seen the third party components, but even with them I cannot get this to display. There is always a title, snippet, left image and right image part. The real question is how do you get the gold star rating in the window, with the text next to it. 回答1: I was

Custom MKAnnotation callout bubble with button

泪湿孤枕 提交于 2019-11-26 19:39:11
I'm developing app, where user is localized by gps and then he is asked, whether he is located in specific place. To confirm this, callout bubble is presented to him straight away, asking him, if he is at specific place. As there is alot of similar questions, I was able to do custom callout bubble: My problem: button is not "clickable" My guess: because this custom callout is higher than standard callout bubble, I had to place it in negative "frame", therefore button cannot be clicked. Here is my didSelectAnnotationView method - (void)mapView:(MKMapView *)mapView didSelectAnnotationView: