Advertise Mobile SDKs Books Events Forum News Social Networking Support Us
Follow @iphonedevsdk on Twitter

Interface 2, Advanced iOS
Mockup & Code Gen
($9.99)

Make your own iPhone apps
and run them live!
(free)

Pic Frame Dynamo: Photo Editing
($0.99)

Abiliator
($1.99)

Want your application or service advertised on iPhone Dev SDK?

Go Back   iPhone Dev SDK Forum

Thread: MKAnnotation
View Single Post
Old 07-29-2010, 06:17 PM   #6 (permalink)
Ovidius
Registered Member
 
Ovidius's Avatar
 
Join Date: Jun 2010
Posts: 77
Ovidius is on a distinguished road
Default

I'm sorry about my previous post, I was looking at the Apple Reference for this protocol and it stated the coordinate as readonly, which gave me problems when assigning its @property and then synthesizing its setters and getters. However:

Basically, I have my class set up as you mention. I tried the following:

Code:
MapAnnotation *startAnnotation = [[MapAnnotation alloc] initWithCoordinate:userLocation.coordinate];
			MKPinAnnotationView *startAnnotationPin = [[MKPinAnnotationView alloc] initWithAnnotation:startAnnotation reuseIdentifier:@"StartPin"];
			startAnnotationPin.pinColor = MKPinAnnotationColorGreen;
			[mapView addAnnotation:startAnnotationPin];
I get this error: warning: class 'MKPinAnnotationView' does not implement the 'MKAnnotation' protocol
Ovidius is offline   Reply With Quote
 

» Advertisements
» Online Users: 364
12 members and 352 guests
AlanR917, amit.mangal, AyClass, Domele, esoteric, HemiMG, ilmman, martianflash, minglei, online-loans70, Sesio, Wharazhasri
Most users ever online was 1,387, 04-10-2012 at 04:21 AM.
» Stats
Members: 175,568
Threads: 94,081
Posts: 402,751
Top Poster: BrianSlick (7,990)
Welcome to our newest member, online-loans70
Powered by vBadvanced CMPS v3.1.0

All times are GMT -5. The time now is 11:19 PM.
Powered by vBulletin® Version 3.8.0
Copyright ©2000 - 2012, Jelsoft Enterprises Ltd.