简体   繁体   English

制作重叠视图

[英]Make an overlapped view

I would like to make two UIViews . 我想做两个UIViews One of them will be fixed in the background with less opacity and the other above will be scrollable. 其中一个将固定在背景中,且不透明度较低,而另一个将可滚动。 Can I do this? 我可以这样做吗?

Yes you can do that. 是的,你可以这么做。 Its quite simple to do that implementation. 做到这一点很简单。 You create 2 UIView's in the NIB file, one above the other ( in an hierarchy point of view). 您可以在NIB文件中创建两个UIView,一个位于另一个之上(从层次结构的角度来看)。 YOu can set the opacity of the one above, so you can see the one behind. 您可以将上面的一个设置为不透明,因此可以看到后面的一个。 Then, just drop an UIScrollView in the front one. 然后,只需将UIScrollView放在最前面。 If you need more help with specifics just reply. 如果您需要更多帮助,请回复。 :) :)

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

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