In this recipe, we will learn how to center the map on a specific location programmatically. We will move faster from now on. We will not focus on the iOS SDK anymore, and we will describe the steps related to general iOS development faster than the previous recipes. We will also dedicate our efforts to explaining more about the framework itself.
Follow these steps:
Chapter6-Recipe3-Beginfolder and then the
The project is already set up to be used with CocoaPods, but it doesn't include the dependencies required. Before opening the
.xcworkspacefile in Xcode, don't forget to run the
pod installcommand in the root of the project folder to download the dependencies.
We will use this starter project to get through the recipe. In the storyboard, I added
UISegmentedControl. All the controls are linked to
ViewController. In the
info.plistfile, I also added the