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 5932995
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 22, 20262026-05-22T14:54:43+00:00 2026-05-22T14:54:43+00:00

I am using CLLocationCoordinate2D in to assign latitude and longitude like this CLLocationDegrees latitude

  • 0

I am using CLLocationCoordinate2D in to assign latitude and longitude like this

 CLLocationDegrees latitude = [somelat doubleValue];
 CLLocationDegrees longitude = [somelongi doubleValue];
 CLLocationCoordinate2D coordinate = CLLocationCoordinate2DMake(latitude, longitude);

When i run this code in iPhone simulator its not showing error but wheni run the same application in ios simulator 3.2 that is the iPad simulator its showing me an “Invalid Initializer” error.

How can i resolve this…Please anybody suggest me a solution to this problem

Thanks and regards,
Sankar Chandra Bose

  • 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-22T14:54:44+00:00Added an answer on May 22, 2026 at 2:54 pm

    CLLocationCoordinate2DMake is available only on iOS 4.0 and later. Do this rather,

    CLLocationCoordinate2D coordinate;
    coordinate.longitude = longitude;
    coordinate.latitude = latitude;
    
    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

Using http://maps.google.com/maps/geo?q= .... return latitude and longitude like those : 48.8616441,2.3448885 in a return
Using preview 4 of ASP.NET MVC Code like: <%= Html.CheckBox( myCheckBox, Click Here, True,
I need to build an array using something like the following: CLLocationCoordinate2D points[4]; points[0]
Please see my comments in code: -(id)initWithCoordinate:(CLLocationCoordinate2D)c title:(NSString *)t { [super init]; coordinate =
CLLocationCoordinate2D coord = {latitude: 61.2180556, longitude: -149.9002778}; MKCoordinateSpan span = {latitudeDelta: 0.2, longitudeDelta: 0.2};
I am using mapkit and use thin code double latitude1; double longitude1; @property (assign)
I am using CLLocationManager to try and grab my users latitude and longitude, cast
I would like to annotations in a Mapview, using data fetched Json via a
I'm trying to figure something that is going on with my Route-Me code using
I receive the following error. I can't figure out why, since latitude and longitude

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.