提交到应用商店时,我刚刚收到以下消息:
此外,该应用程序还会显示
Google Maps提供的图片,不包含
相应的Google品牌
无法将此版本发布到应用程序
商店
我有一个带有NavigationController的TabBar。导航控制器将地图加载到
- (void)viewDidLoad {
[super viewDidLoad];
mapView = [[MKMapView alloc] initWithFrame:self.view.bounds];
// ...
}
可以,但是mapView结束于标签栏下方,因此不会显示Google徽标。为了正确获取框架,我必须手动创建它
- (void)viewDidLoad {
[super viewDidLoad];
mapView = [[MKMapView alloc] initWithFrame:CGRectMake(0,0,320,370)];
// ...
}
这可行,但是感觉不对。正确的做法是什么?
主界面(TabBar +导航控制器)在Interface Builder中创建。
最佳答案
这解决了问题
mapView.autoresizingMask = (UIViewAutoresizingFlexibleWidth | UIViewAutoresizingFlexibleHeight);
关于iphone - 标签栏和导航 Controller 内部的MKMapView隐藏了Google品牌,我们在Stack Overflow上找到一个类似的问题:https://stackoverflow.com/questions/3685401/