0
因此,我使用xcode 6.2,我開始製作應用程序。 但我有一個問題:每當我拖動我的故事板中的東西像導航欄中的地圖覆蓋它,它根本不會顯示,請幫助。 這裏是我的代碼谷歌地圖sdk - 地圖疊加evrything在我的故事板
#import "ViewController.h"
@interface ViewController() {
GMSMapView *mapView;
}
@end
@implementation ViewController
- (void)viewDidLoad {
[super viewDidLoad];
GMSCameraPosition *camera = [GMSCameraPosition cameraWithLatitude:43.642510 longitude:-79.387038 zoom:12 bearing:0 viewingAngle:0];
mapView = [GMSMapView mapWithFrame:CGRectZero camera:camera];
mapView.myLocationEnabled = YES;
self.view = mapView;
GMSMarker *marker = [[GMSMarker alloc] init];
marker.position = CLLocationCoordinate2DMake(43.642510, -79.387038);
marker.title = @"CN-Tower";
marker.snippet = @"A beautifull tower";
marker.map = mapView;
marker.opacity = 0.7;
}
還是要謝謝你, JP