-
Book Overview & Buying
-
Table Of Contents
Mapbox Cookbook
By :
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:
Open the Chapter6-Recipe3-Begin folder and then the .xcworkspace file.
The project is already set up to be used with CocoaPods, but it doesn't include the dependencies required. Before opening the .xcworkspace file in Xcode, don't forget to run the pod install command 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 UIToolBar, two UIButtonItem controls, and UISegmentedControl. All the controls are linked to ViewController. In the info.plist file, I also added the NSLocationWhenInUseUsageDescription...
Change the font size
Change margin width
Change background colour