iPhone, iPod Touch, and iPad share an important feature: All of them are mobile devices. Taking advantage of the built-in GPS sensor, we can identify the device's current location. This kind of information can be very useful for those developers interested in geolocation.
Let's find out how to develop a simple application for retrieving our current location using our mobile iOS device. Our application will display our current location on the screen using the standard latitude and longitude coordinates. This information will be displayed after the user clicks the provided button.
For this recipe, we'll use the UiUIKit framework for building the graphical user interface of our application. Additionally, the XUI framework will be used for manipulating the DOM model of the page for displaying our result. Check to make sure that both the frameworks are installed on your machine.