I am a newbie to Objective C Development, So please bear with me.....
My Situation is as follows.....I wanted to detect the user's lat and lon on RootViewController
and when the user agrees to that, i wanted to pass those values to a webpage (residing on one of my servers). This webpage does all the开发者_如何学Python backend queries based on the lat an lon values passed in to it.....
Does anyone knows how to accomplish this?
@Matthew,
Thanks for the response. To answer your questions...
1) what does this have to do with UITableView? I am trying to show the local Montessori info depending on the geo location of the user.
This info will be displayed in a UITableView subclass.2) And what is supposed to be displayed after the server does the backend queries? Well, i guess i tried to answer it in question 1.
Please let me know if it makes sense.
You can obtain the user's location using the CoreLocation framework.
I suggest you start by reading the overview document:
- Making your Application Location-Aware
Basically you create a CLLocationManager
in your controller, and register it as the delegate. You will receive callbacks with location information, which you can filter and process. To upload the data to your server, you could use various means such as the NSURL
support.
精彩评论