Find centralized, trusted content and collaborate around the technologies you use most.
Teams
Q&A for work
Connect and share knowledge within a single location that is structured and easy to search.
我试图将我的应用程序保留在一个视图控制器上,这样我就不必来回传递信息。首先,用户使用文本字段来填写信息,然后我的程序对其进行处理并在图像上显示标签。是否可以在单击按钮之前隐藏图像视图,然后将图像向前移动并在文本字段顶部显示图像视图?
imageView.alpha = 0; // Not visible imageView.alpha = 1; // Visible
你可以把它置于你的UIButton行动之下。
UIButton
为了让它位于一切之上,只需将图像视图拖到界面构建器内的最低级别。