iphone - Change Current Location from within the app -
i stuck in problem user current location.
i have app in show events occur near of user current location. fine till have implement functionality change city. if change city near events change respectively. want know able change current location within app. or in other words can change location in settings of phone within app. suggestion helpful.
thanks
you can't change current location settings.
if want save selected city current location save selected city's longitude , latitude , pass current location method gets near events should work current location.
you can save selected city lat n long in preference file (or .plist). , when location updates can check if user have selected city pass lat , long of selected city otherwise current location lat long. easier you.
hope helps!!
Comments
Post a Comment