在地图上移动合法按钮(iOS 6) [英] Move legal button on maps (iOS 6)

查看:86
本文介绍了在地图上移动合法按钮(iOS 6)的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述


可能重复:

地图和法律提及

在iOS 5或更低版本中我能够在地图视图中移动Google徽标。 iO6有一个合法按钮,这是一个MKAttributeLabel。 MKAttributeLabel是一个我无法编辑的私有类。
我的按钮与底部的地图重叠(按设计),所以我移动了谷歌徽标。

In iOS 5 or lower I was able to move the Google logo in the map view. iO6 has a "legal" button and this is a MKAttributeLabel. MKAttributeLabel is a private class that I can't edit. I have buttons which overlap the map in the bottom (by design) so i moved the google logo.

有没有办法重新定位法律按钮ios6地图?

Is there a way to reposition the Legal button in ios6 maps?

推荐答案

合法标签是标准UILabel,因此您可以像其他标签一样更改框架:

The legal label is a standard UILabel, so you can change the frame like an other label :

UIView *legalView = nil;

for (UIView *subview in self.mapview.subviews) {
   if ([subview isKindOfClass:[UILabel class]]) {
            legalView = subview;
            break;
     }
}
legalView.frame = CGRectMake(150, 150, legalView.frame.size.width, legalView.frame.size.height);

这篇关于在地图上移动合法按钮(iOS 6)的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆