I'm using the core location framework to get the users location. The problem is sometimes the location which first appears is the previously last known location. now I've read a blog and it suggested:
"Core Location will cache data. The first reading it provides to your app is likely to be an old reading, which might or might not be accurate, depending on whether the phone has moved. Make sure to check the timestamp of any location and see if it's from before your app started."
This seems to work, as the startDate is given when the user presses a button and then every time a new location is found, it checks to see whether the timestamp is greater than the startDate, needless to say, if the timestamp provided is an old one i.e before the startDate variable, then nothing will happen and it'll just wait until the next location update.