Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • SEARCH
  • Home
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 4623446
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 22, 20262026-05-22T02:59:18+00:00 2026-05-22T02:59:18+00:00

I’ve gotten to a point where I’m starting to think this is may actually

  • 0

I’ve gotten to a point where I’m starting to think this is may actually be a bug in Xcode, but to be sure, I’m asking it here. I was working on my app that uses MapKit and CoreLocation, but at some point I started getting the warning “Property ‘coordinate’ requires method ‘-coordinate'”. At first I thought I was doing something wrong, as I did use the property coordinate for an MKPointAnnotation, but after I commented that out, the warning remained.

In fact, after I’ve commented out pretty much everything, I still get the warning. It tells me the file name and line number (the line with @end), but if I search for coordinate in that file, there aren’t any results. The .h doesn’t declare the property either, so I’m really lost as to where this error is coming from… I can provide you with code, of course, but I’ve commented so much stuff out that it doesn’t really make any sense to post it here. Just a few memory management methods without any actual content other than sending a message to super…

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-05-22T02:59:19+00:00Added an answer on May 22, 2026 at 2:59 am

    Xcode is correct in telling you that you’re required to implement -coordinate. This is a non-optional method of the MKAnnotation protocol.

    http://developer.apple.com/library/ios/#documentation/MapKit/Reference/MKAnnotation_Protocol/Reference/Reference.html

    coordinate The center point (specified
    as a map coordinate) of the
    annotation. (required) (read-only)

    @property (nonatomic, readonly)
    CLLocationCoordinate2D coordinate

    I believe the reason you can’t synthesize coordinate is not because you didn’t declare the property, but because you haven’t told the compiler what storage to use.

    Adding

    CLLocationCoordinate2D coordinate;
    

    to the fields (variables) section of your class interface will give the compiler the storage it is looking for.

    Or you can point the compiler to other storage using this syntax:

    @synthesize coordinate=myCoordinateVariable;
    

    But none of that really matters, because you don’t have to use synthesize.

    Just implement the method yourself! The required part is readOnly so you only need to implement the getter.

    -(CLLocationCoordinate2D)coordinate {
        return myCoordinate;
    }
    

    @property and @synthesize are primarily shortcuts. @synthesize just says to the compiler – “Implement these accessors if I haven’t”. But normally you declare a property like this, right?

    @implementation MyClass : NSObject {
        NSString *someString;
    }
    
    @property (nonatomic, retain) NSString *someString;
    

    and then you synthesize it. @synthesize creates the appropriate implementations for the declarations implied by @property:

    -(NSString *)someString;
    -(void)setSomeString:(NSString *);
    

    and uses the storage you provided when you declared the instance variable, NSString *someString.

    Incidentally, in Xcode 4 @synthesize automatically creates storage for you if it doesn’t already exist.

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I have a string like this: La Torre Eiffel paragonata all’Everest What PHP function
I'm parsing an RSS feed that has an ’ in it. SimpleXML turns this
This could be a duplicate question, but I have no idea what search terms
link Im having trouble converting the html entites into html characters, (&# 8217;) i
I want to count how many characters a certain string has in PHP, but
For some reason, after submitting a string like this Jack’s Spindle from a text
I have a jquery bug and I've been looking for hours now, I can't
this is what i have right now Drawing an RSS feed into the php,
I have this code to decode numeric html entities to the UTF8 equivalent character.
I have a French site that I want to parse, but am running into

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.