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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 18, 20262026-06-18T05:44:30+00:00 2026-06-18T05:44:30+00:00

My iOS app uses the information provided by Apple, here , to get various

  • 0

My iOS app uses the information provided by Apple, here, to get various location information about my user. cllocationmanager provides a method for getting location information about the user every-time it changes based on certain parameters:

- (void)locationManager:(CLLocationManager *)manager didUpdateLocations:(NSArray *)locations

This method is absolutely amazing, and returns all of the data I need, however it returns it as a single value in an NSArray:

<+37.33069626,-122.02967106> +/- 10.00m (speed 3.62 mps / course 82.41) @ 2/3/13, 4:42:58 PM Eastern Standard Time

This has all the information I need (by the way, what does the course variable stand for), but I can’t figure out how to get it into a more usable form. By usable form, I mean simply the coordinates, time, speed, etc. all in separate NSString / NSDictionary / NSArray values. How can I split the single NSArray value (shown above) into different parts?

I’ve tried splitting the single NSArray value here using nspredicate, but I could only get the NSPredicate to return a boolean value.

I’ve tried splitting it with the componentsJoinedByString method, however that can only split the array value with one string and there’s no single string that every value can be consistently split by.

Any suggestions on how I can split up the pieces of data given to my iOS app through CLLocationManager? Are there methods or functions which could retrieve / split the same data in a more usable form.

Edit

It seems there was a misunderstanding both on my part and others. I had thought that the CLLocation object was an NSArray object with one value. However, as I learned in the comments (thank you @holex) it is not.

  • 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-06-18T05:44:31+00:00Added an answer on June 18, 2026 at 5:44 am

    According to this part of the doc, the array contains CLLocations objects. So, just retrieve and process them.

    for (CLLocation *location in locations) {
      NSLog(@"Latitude: %f, Longitude: %f", location.coordinate.latitude, location.coordinate.longitude);
    }
    
    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

My app uses a device's phone number to get meaningful information about the user's
To build an iOS app that uses Apple's APN service, you need a server.
I have an app that uses the iPhone's contacts. With iOS 6, the user
I have an iOS App that may store confidential information and also uses iCloud
I've written an iOS app which uses custom localization (for various reasons). It undefines
I have an iOS app that uses a number of enums for valid values,
I'm working on an iOS app that uses a NSMutableURLRequest and a NSURLConnection to
My iOS app is randomly crashing but I don't get any warning/error in the
I have an iOS-App which uses ARC. I don't use InterfaceBuilder, all UI is
I'm building an iOS app that uses a webview in one place. When the

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.