New To Mac-Forums?

Welcome to our community! Join the discussion today by registering your FREE account. If you have any problems with the registration process, please contact us!

Get your questions answered by community gurus Advice and insight from world-class Apple enthusiasts Exclusive access to members-only contests, giveaways and deals

Join today!

Start a Discussion

Mac-Forums Brief

Subscribe to Mac-Forums Brief to receive special offers from Mac-Forums partners and sponsors

Join the conversation RSS
iOS and Apps All your questions and discussion of iOS or iOS Apps.

Mapkit annotation

Post Reply New Thread Subscribe

Thread Tools

Member Since: Jun 28, 2011
Posts: 1
AK7 is on a distinguished road

AK7 is offline
dear all

i have a problem with xcode mapkit annotation ... its been three weeks but no luck .... i'm trying to show a picture insted of a pin and also callout withthe blue arrow to link it to other views .... this is the code :

- (void)viewDidLoad
[super viewDidLoad];

MKCoordinateRegion Kuwait = {{0.0,0.0},{0.0, 0.0}}; = 29.291190; 47.801514;
Kuwait.span.latitudeDelta = 2;
Kuwait.span.longitudeDelta = 2;
[mapView setRegion:Kuwait animated:YES];

MyAnnotation *marker = [[MyAnnotation alloc]init];
marker.title = @"fist Target";
marker.subtitle = @"Ahmad Alkandri";
marker.coordinate =;
[mapView addAnnotation:marker];
[mapView setRegion:Kuwait animated:YES];


- (MKAnnotationView *) mapViewMKMapView *) mapView viewForAnnotationid ) annotation {
MKPinAnnotationView *customPinView = [[[MKPinAnnotationView alloc] initWithAnnotation:annotation reuseIdentifier:nil] autorelease];
customPinView.pinColor = MKPinAnnotationColorGreen;
customPinView.animatesDrop = YES;
customPinView.canShowCallout = YES;
return customPinView;

QUOTE Thanks

Post Reply New Thread Subscribe

« With iOS 5 having Wireless Sync, how will Jailbreakers stop this (iPhone, iPod, iPad) | Creating photo albums in iPad... »
Thread Tools

Currently Active Users Viewing This Thread: 1 (0 members and 1 guests)
Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts
BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are Off
Forum Jump

Similar Threads
Thread Starter
Last Post
Preview annotation replace text GDMate OS X - Apps and Games 0 05-08-2011 10:33 PM
Document/ email annotation Axxll OS X - Apps and Games 0 05-16-2009 07:27 AM

All times are GMT -4. The time now is 04:30 PM.

Powered by vBulletin
Copyright ©2000 - 2015, Jelsoft Enterprises Ltd.

Welcome to

Create your username to jump into the discussion!

New members like you have made this community the ultimate source for your Mac since 2003!

(4 digit year)

Already a member?