iPhone 应用程序上的 MK MapView

发布于 2024-09-08 06:28:33 字数 136 浏览 0 评论 0原文

我正在开发的应用程序使用带有地图视图的选项卡栏。问题是标签栏遮挡了左下角的 Google 地图徽标。如何设置地图视图的高度和宽度以确保 Google 徽标可见?我尝试过调整 IB 上的地图视图,但尺寸似乎没有改变,因为徽标仍然被遮挡在视图中。有人可以帮忙吗?

The app I am developing uses a tab bar with a Map View. The problem is the tab bar blocks out the Google Maps logo at the bottom left hand corner. How do I set the height and width of the Map View to ensure that the Google logo is visible? I've tried adjusting the Map View on IB but the size doesn't seem to change as the logo is still blocked from view. Can anyone help?

如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

扫码二维码加入Web技术交流群

发布评论

需要 登录 才能够评论, 你可以免费 注册 一个本站的账号。

评论(1

岁月苍老的讽刺 2024-09-15 06:28:33

您始终可以通过编程方式设置框架。

//create a map view to talk about, though you're probably getting it via your .xib
MKMapView *map = [[MKMapView alloc] init]; 
map.frame = CGRectMake(0, 0, 320, 300); //that's x, y, width, height

您可能想在 -viewDidLoad 中执行此操作。

You can always set the frame programmatically.

//create a map view to talk about, though you're probably getting it via your .xib
MKMapView *map = [[MKMapView alloc] init]; 
map.frame = CGRectMake(0, 0, 320, 300); //that's x, y, width, height

You'd probably want to do that in -viewDidLoad.

~没有更多了~
我们使用 Cookies 和其他技术来定制您的体验包括您的登录状态等。通过阅读我们的 隐私政策 了解更多相关信息。 单击 接受 或继续使用网站,即表示您同意使用 Cookies 和您的相关数据。
原文