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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 12, 20262026-05-12T18:57:14+00:00 2026-05-12T18:57:14+00:00

What I can do: Take a sqlite DB of 100 lat and lng points,

  • 0

What I can do:
Take a sqlite DB of 100 lat and lng points, and drop those pins on a map. Looks GREAT!

What I would like to do is get my location, BEFORE I draw my map. But it seems that:

  • (void)locationManager:(CLLocationManager *)manager didUpdateToLocation:(CLLocation *)newLocation fromLocation:(CLLocation *)oldLocation

ALWAYS fires off AFTER (void)viewDidLoad runs. NO MATTER where I insert it.

What i need to do is have a splash screen, STOP there until I get a location, use that lat and lng to search my sqlite DB of locations within so many miles of me.

Here my trace:

Entering -[RootViewController initWithTabBar]

Entering -[RootViewController viewDidLoad]

Entering -[RootViewController locationManager:didUpdateToLocation:fromLocation:]

And here’s what I really want:

Entering -[RootViewController initWithTabBar]

Entering -[RootViewController locationManager:didUpdateToLocation:fromLocation:]

Entering -[RootViewController viewDidLoad]

Now I’m thinking (working with a tabbarcontroller), do somehow I have to push this all the way back to my app delegate? Freeze the entire app until I get a location? That’s my latest thoughts.

thanks for any tips, leads, snippets … !!! I’ve been looking for days, no luck at all.

thanks!!!!

  • 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-12T18:57:14+00:00Added an answer on May 12, 2026 at 6:57 pm

    You definitely don’t want to “freeze” the app, and you definitely want to do as little work in your app delegate’s applicationDidFinishLaunching: method as possible. What I might recommend:

    • Have two views: one is the “real” view with the map, (presumably) controlled by some view controller. The other is just a simple “waiting” view with a message to the user and a UIActivityIndicatorView, or something like that.
    • When your app launches, load and display the waiting view in your app’s window, and kick off the location manager to find the user’s current location.
    • When you’ve got enough location information, load the real view, add it to the window, and remove the waiting view. (Maybe with a nice cross-fade animation or something.)

    You could also add both views, and just flip their hidden properties at the right time. But the point is to give the user something to look at, while not trying to fight the inherently asynchronous nature of Core Location.

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

Sidebar

Related Questions

Zlib::GzipReader can take an IO, or IO-like, object. as it's input, as stated in
I would like to take a list of names (e.g. john, mary, paul) and
I would like to take data from the Facebook Graph API and analyze it
Objective: I would like to take a JSON String and pass it into JavaScript
I can take snapshot of a component. But the problem is the component is
can i get validation on weight which can take decimal values and also integer.
Can u give me a simple function in vb.net which can take number of
Scriptaculous's Effect.Morph can take a CSS class and apply it over a period of
Is there anyway we can take input from command line in Objective-C, the way
Is there a utility that can take ALL the SO's that an Elf needs

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.