Discussion Forums  >  Uncategorized

Replies: 2    Views: 668

TeamIKG
I hate code!
Profile
Posts: 1
Reg: Sep 24, 2011
Vancouver, BC
10
10/08/11 05:51 PM (14 years ago)

Xcode: Problem with code Property 'title''copy' attribute does not match the property inherited from 'MKAnnotation'

This is what i have on the xcode #import <Foundation/Foundation.h> #import <MapKit/MapKit.h> @interface MapAnnotation : NSObject <MKAnnotation> { CLLocationCoordinate2D coordinate; NSString *title; NSString *subtitle; int listIndex; } @property (nonatomic) CLLocationCoordinate2D coordinate; @property (nonatomic, retain) NSString *title; @property (nonatomic, retain) NSString *subtitle; @property (nonatomic) int listIndex; @end i keep getting this error Property 'title''copy' attribute does not match the property inherited from 'MKAnnotation' Property 'subtitle''copy' attribute does not match the property inherited from 'MKAnnotation' any help?
 
David @ buzztouch
buzztouch Evangelist
Profile
Posts: 6866
Reg: Jan 01, 2010
Monterey, CA
78,840
like
10/19/11 12:11 PM (14 years ago)
Build warnings should be gone with the newly updated download. Have a look at the change log in the documentation then grab the newest project.
 
AirKevin
Code is Art
Profile
Posts: 1
Reg: Mar 01, 2012
Seattle, WA
10
like
03/01/12 02:55 PM (13 years ago)
I am getting: Conversion specifies type 'int' but the argument has type 'OSStatus' Property 'title' 'copy' attribute does not match the property inherited from 'MKAnnotation' Extra tokens at end of #import directive (#import Screen.h//; which it automatically corrects to #import Screen.h;) About 40 of these build warnings in total on a simple 3 page test created today.
 

Login + Screen Name Required to Post

pointerLogin to participate so you can start earning points. Once you're logged in (and have a screen name entered in your profile), you can subscribe to topics, follow users, and start learning how to make apps like the pros.