callouts

iOS: Callout design NOT OVER MAP [closed]

北慕城南 提交于 2020-01-30 13:30:46
问题 Closed . This question needs to be more focused. It is not currently accepting answers. Want to improve this question? Update the question so it focuses on one problem only by editing this post. Closed 7 days ago . I should to draw a custom view like the one shown in picture. In my layout there is a progress view, callout view should be placed over it, someone know a way to draw this custom callout view ? I'm thinking to use bezier path, I cannot draw view through popovers. Thanks to all

iOS: Callout design NOT OVER MAP [closed]

孤街醉人 提交于 2020-01-30 13:30:15
问题 Closed . This question needs to be more focused. It is not currently accepting answers. Want to improve this question? Update the question so it focuses on one problem only by editing this post. Closed 7 days ago . I should to draw a custom view like the one shown in picture. In my layout there is a progress view, callout view should be placed over it, someone know a way to draw this custom callout view ? I'm thinking to use bezier path, I cannot draw view through popovers. Thanks to all

How to save the selected MKAnnotation?

久未见 提交于 2019-12-23 19:35:53
问题 I have an app that has a mapview, and it shows 20 pins (from an Array) on the map. When the user clicks on it, it can show a bubble with a right accessory button. Here come my problem: How do I know which pin was pressed? I heard something about the mapView:didSelectAnnotationView method, but I don't really understand how do you get the pin/callout index, so that I can get the information of the object at the same index of my Array? Thanks for any help! 回答1: When that method gets called --

iOS7 style mapview callout segue in the callout (calloutAccessoryControlTapped, UIButtonTypeDetailDisclosure)

◇◆丶佛笑我妖孽 提交于 2019-12-23 18:11:05
问题 I have mapview on iPad with annotations and callouts, each callout also has rightCalloutAccessoryView with detail disclosure button. I see the stock Maps app performs segue for callout details within the callout's object. It first performs a transition of the view from right to left like a push segue, then resizes the callout frame based on the detail's content. How should I configure the segue in storyboard to be performed within the original callout and not replace the entire screen? Is it

Custom MKAnnotationView - How to capture touches and NOT dismiss the callout?

孤人 提交于 2019-12-22 09:49:26
问题 I have a custom MKAnnotationView subclass. It is showing the view exactly as I want it to. In that view, I have a button. I want to capture events on the button to perform an action. This works just fine. However, I do NOT want the callout to be dismissed or disappear. Basically, touching the button in the callout will start playing a sound, but I want to leave the annotation up so the user can press stop if they want to, without having to touch the map pin again to bring the annotation back

How do I make a pin annotation callout in Swift?

℡╲_俬逩灬. 提交于 2019-12-18 17:27:58
问题 I tried to make the callout work but that didn't happen as I did something wrong in my prepare for segue. I want to know how to be able to make a pin annotation callout to another view? 回答1: The process of segueing to another scene when the button in the callout is tapped is like so: Set the delegate of the map view to be the view controller. You can do this either in Interface Builder's "Connections Inspector" or programmatically. You want to specify that the view controller conforms to

How do I make a pin annotation callout in Swift?

主宰稳场 提交于 2019-12-18 17:27:37
问题 I tried to make the callout work but that didn't happen as I did something wrong in my prepare for segue. I want to know how to be able to make a pin annotation callout to another view? 回答1: The process of segueing to another scene when the button in the callout is tapped is like so: Set the delegate of the map view to be the view controller. You can do this either in Interface Builder's "Connections Inspector" or programmatically. You want to specify that the view controller conforms to

- (MKAnnotationView *)mapView not getting called

风格不统一 提交于 2019-12-13 05:33:17
问题 In my code, the - (MKAnnotationView *)mapView:(MKMapView *)mapView viewForAnnotation:(id <MKAnnotation>)annotation method is not getting called. I don know why. Can anyone please help me? Below is my code: - (MKAnnotationView *)mapView:(MKMapView *)mapView viewForAnnotation:(id <MKAnnotation>)annotation { MKPinAnnotationView *pinView = (MKPinAnnotationView *)[mapView dequeueReusableAnnotationViewWithIdentifier:@","]; NSLog(@"pin map"); if(pinView == nil) { pinView = [[MKPinAnnotationView

How to Hide MKAnnotationView Callout?

假如想象 提交于 2019-12-12 07:45:09
问题 i'm trying to hide an AnnotationView without touching the pin, is the possible? Thanks! for (id currentAnnotation in self.mapView.annotations) { if ([currentAnnotation isKindOfClass:[MyAnnotation class]]) { } } 回答1: Do you just want to make the callout bubble go away but keep the pin? If yes, then do this: for (id currentAnnotation in self.mapView.annotations) { if ([currentAnnotation isKindOfClass:[MyAnnotation class]]) { [self.mapView deselectAnnotation:currentAnnotation animated:YES]; } }