How do you move the legal sign in mapview

后端 未结 11 2049
别跟我提以往
别跟我提以往 2020-12-05 20:24

I wonder if anyone know how you move the legal sign on a mapview, right now my toolbar is covering it. Does anyone know how? There is lot\'s of help with the google logo but

11条回答
  •  南笙
    南笙 (楼主)
    2020-12-05 20:38

    This is still possible in iOS 7, but only (?) if placed in viewDidAppear. The coords are reset if placed in viewDidLoad or viewWillAppear.

        UILabel *attributionLabel = [mapView.subviews objectAtIndex:1];
        attributionLabel.center = CGPointMake(attributionLabel.center.x, attributionLabel.center.y - 44.0f);
    

提交回复
热议问题