简体   繁体   English

如何使UIImageView出现在MapView上方

[英]How to make the UIImageView appear above the MapView

I am willing to get the ImageView appear above the MapView because it contains two buttons, however, what ever i did, the MapView still Hiding the UIImageView: 我愿意让ImageView出现在MapView上面,因为它包含两个按钮,但是,无论我做了什么,MapView仍然隐藏了UIImageView:

在此输入图像描述

There is a column to your left when you are looking at interface files, that show the objects associated with you .xib. 当您查看界面文件时,左侧有一列,显示与您关联的对象.xib。 The bottom-most object will be the one that is in front of all the others 最底层的对象将是所有其他对象面前的对象

Have you tried?: 你有没有尝试过?:

[someView bringSubviewToFront:myImageView];

Put this after you added your mapview to your mainview. 将mapview添加到主视图后将其放入。

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM