make iproj now produces a target that pulls together static libraries like core and platform-ios into a real dynamic framework. iosapp is pretty much just a regular iOS application that links Mapbox.framework (except for the inclusion of default_styles.hpp). iosapp runs fine in the Simulator and on a device, and the same is true for any application linking against Mapbox.framework. The ipackage target produces both a Bitcode-disabled static framework and a Bitcode-enabled dynamic framework, eliminating the need for a separate framework.sh. It disables code signing, since that happens on copy when the framework is embedded inside the application bundle. It also merges the device and simulator builds into a single fat framework. Also bumped itest minimum deployment target to iOS 8.0, the first version that supports linking frameworks. Fixes #828.
30 lines
535 B
Objective-C
30 lines
535 B
Objective-C
#import "MGLTViewController.h"
|
|
#import <Mapbox/Mapbox.h>
|
|
|
|
@implementation MGLTViewController
|
|
{
|
|
MGLMapView *_mapView;
|
|
}
|
|
|
|
- (void)viewDidLoad
|
|
{
|
|
[super viewDidLoad];
|
|
|
|
_mapView = [[MGLMapView alloc] initWithFrame:self.view.bounds];
|
|
_mapView.autoresizingMask = UIViewAutoresizingFlexibleWidth | UIViewAutoresizingFlexibleHeight;
|
|
|
|
[self.view addSubview:_mapView];
|
|
}
|
|
|
|
- (void)insetMapView
|
|
{
|
|
_mapView.frame = CGRectInset(_mapView.frame, 50, 50);
|
|
}
|
|
|
|
- (void)resetMapView
|
|
{
|
|
_mapView.frame = self.view.bounds;
|
|
}
|
|
|
|
@end
|