我在提交到应用商店时刚刚收到以下消息:
In addition, the application displays images provided by Google Maps without the corresponding Google branding, we cannot post this version to the App Store
我有一个 TabBar,里面有一个 NavigationController。导航 Controller 加载 map
- (void)viewDidLoad {
[super viewDidLoad];
mapView = [[MKMapView alloc] initWithFrame:self.view.bounds];
// ...
}
这可行,但 map View 结束于选项卡栏下方,因此不会显示 Google Logo 。为了正确获取框架,我必须手动创建它
- (void)viewDidLoad {
[super viewDidLoad];
mapView = [[MKMapView alloc] initWithFrame:CGRectMake(0,0,320,370)];
// ...
}
这可行,但感觉不对。正确的做法是什么?
主界面(TabBar + 导航 Controller )是在 Interface Builder 中创建的。
最佳答案
这解决了问题
mapView.autoresizingMask = (UIViewAutoresizingFlexibleWidth | UIViewAutoresizingFlexibleHeight);
关于iphone - 标签栏和导航 Controller 内的 MKMapView 隐藏了 Google 品牌,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/3685401/