How to implement a overlay button which is floating over the content view

杀马特。学长 韩版系。学妹 提交于 2019-12-04 09:53:00

Add a subview to your window's content view with insertSubview:aboveSubview: method with your button and scrollview as arguments, but be careful: if two sibling views both have transparency, the resulting drawing behaviour is undefined.

if you using storyboard just add button over it, like

if you want to do with code insertSubview:buttonView aboveSubview:scrollView

no matters its table or scroll view

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!