tag:blogger.com,1999:blog-5601914985162740511.post4621591362748259075..comments2024-03-12T00:53:10.652-07:00Comments on iPhone by Radix: Map Kit with AnnotationsRavihttp://www.blogger.com/profile/15355776480383261849noreply@blogger.comBlogger5125tag:blogger.com,1999:blog-5601914985162740511.post-80562985221816631212013-09-18T23:42:16.573-07:002013-09-18T23:42:16.573-07:00Just place this code at the end of all functions j...Just place this code at the end of all functions just put before @.<br />Replace mapView_m with your map view<br />Happy coding<br />:)Anonymoushttps://www.blogger.com/profile/15830256667929709268noreply@blogger.comtag:blogger.com,1999:blog-5601914985162740511.post-33895146010448423462013-09-18T23:39:27.934-07:002013-09-18T23:39:27.934-07:00- (MKAnnotationView *)mapView:(MKMapView *)mapview...- (MKAnnotationView *)mapView:(MKMapView *)mapview viewForAnnotation:(id )annotation<br />{<br /> NSLog(@"nslog is");<br /> if ([annotation isKindOfClass:[MKUserLocation class]])<br /> return nil;<br /> static NSString* AnnotationIdentifier = @"AnnotationIdentifier";<br /> MKAnnotationView *annotationView = [mapView_m dequeueReusableAnnotationViewWithIdentifier:AnnotationIdentifier];<br /> if(annotationView)<br /> return annotationView;<br /> else<br /> {<br /> MKAnnotationView *annotationView = [[MKAnnotationView alloc] initWithAnnotation:annotation<br /> reuseIdentifier:AnnotationIdentifier];<br /> annotationView.canShowCallout = YES;<br /> annotationView.image = [UIImage imageNamed:@"map-pin-2.png"];<br /> UIButton* rightButton = [UIButton buttonWithType:UIButtonTypeDetailDisclosure];<br /> [rightButton addTarget:self action:@selector(myShowDetailsMethod:) forControlEvents:UIControlEventTouchUpInside];<br /> [rightButton setTitle:annotation.title forState:UIControlStateNormal];<br /> annotationView.rightCalloutAccessoryView = rightButton;<br /> annotationView.canShowCallout = YES;<br /> annotationView.draggable = YES;<br /> return annotationView;<br /> }<br /> return nil;<br />}Anonymoushttps://www.blogger.com/profile/15830256667929709268noreply@blogger.comtag:blogger.com,1999:blog-5601914985162740511.post-55425589225253349612013-03-07T09:08:47.876-08:002013-03-07T09:08:47.876-08:00hi ravi,
how to replace images with annotation.co...hi ravi,<br /><br />how to replace images with annotation.could you please post.<br /><br /> Anonymoushttps://www.blogger.com/profile/01708067071479700085noreply@blogger.comtag:blogger.com,1999:blog-5601914985162740511.post-44656496302402090742012-04-23T00:37:51.421-07:002012-04-23T00:37:51.421-07:00YesYesRavihttps://www.blogger.com/profile/15355776480383261849noreply@blogger.comtag:blogger.com,1999:blog-5601914985162740511.post-32701513369594935572012-04-11T23:20:16.675-07:002012-04-11T23:20:16.675-07:00with out adding mkpoint annotation in this code.
...with out adding mkpoint annotation in this code.<br /><br /><br />we are not getting any pin on mapview.<br /><br />we can see only mapview with specified co ordinates.<br /><br /><br />is it right?e-infoherdhttps://www.blogger.com/profile/06874857870711127486noreply@blogger.com