summaryrefslogtreecommitdiff
path: root/platform
diff options
context:
space:
mode:
authorMinh Nguyễn <mxn@1ec5.org>2016-01-28 23:38:21 -0800
committerMinh Nguyễn <mxn@1ec5.org>2016-01-28 23:38:21 -0800
commit710398b780cc05e961a9c58c18176af46bbd34be (patch)
tree17abd3927f54f9655ca3321aa5e74945c881302d /platform
parent69954525419b66ebae09ac21914342c31dfad190 (diff)
downloadqtlocation-mapboxgl-710398b780cc05e961a9c58c18176af46bbd34be.tar.gz
[ios] Removed redundant usage section
Also copied some further setup steps from the IB page on the project wiki.
Diffstat (limited to 'platform')
-rw-r--r--platform/ios/INSTALL.md24
1 files changed, 19 insertions, 5 deletions
diff --git a/platform/ios/INSTALL.md b/platform/ios/INSTALL.md
index 777c0035b7..5db1c865ef 100644
--- a/platform/ios/INSTALL.md
+++ b/platform/ios/INSTALL.md
@@ -105,14 +105,28 @@ If your application targets iOS 7.x, you’ll need to install the static framewo
1. Mapbox vector tiles require a Mapbox account and API access token. In the project editor, select the application target. In the Info tab, set `MGLMapboxAccessToken` to your access token. You can obtain one from the [Mapbox account page](https://www.mapbox.com/studio/account/tokens/).
-1. In a XIB or storyboard, add a Custom View and set its custom class to `MGLMapView`. If you need to manipulate the map view programmatically, import the `Mapbox` module (Swift) or `Mapbox.h` umbrella header (Objective-C).
+1. In a XIB or storyboard, add a View and set its custom class to `MGLMapView`. If you need to manipulate the map view programmatically, import the `Mapbox` module (Swift) or `Mapbox.h` umbrella header (Objective-C), then connect the map view to a new outlet in your view controller class. The resulting outlet declaration should look something like:
-## Use
+```objc
+// ViewController.m
+#import <Mapbox/Mapbox.h>
-1. Mapbox vector tiles require a Mapbox account and API access token. In the project editor, select the application target. In the Info tab, set `MGLMapboxAccessToken` to your access token. You can obtain one from the [Mapbox account page](https://www.mapbox.com/studio/account/tokens/).
+@interface ViewController : UIViewController
+
+@property (strong) IBOutlet MGLMapView *mapView;
+
+@end
+```
+
+```swift
+// ViewController.swift
+import Mapbox
-1. In a XIB or storyboard, add a View and set its custom class to `MGLMapView`. If you need to manipulate the map view programmatically, import the `Mapbox` module (Swift) or `Mapbox.h` umbrella header (Objective-C).
+class ViewController: UIViewController {
+ @IBOutlet var mapView: MGLMapView!
+}
+```
-## Troubleshooting
+### Troubleshooting
On OS X, you can also try clearing the Xcode cache with `make clear_xcode_cache`.