我应该如何使Floating Button仅存在特定的ViewController?

在我的应用中,有很多ViewController

我已经在主题之一中创建了浮动按钮。

但是有可能将其添加到我需要的另一个ViewController中吗?

不是整个App,只有特定的ViewController

创建我引用的浮动按钮

Swift: Floating Plus button over Tableview using The StoryBoard

h3251300 回答:我应该如何使Floating Button仅存在特定的ViewController?

用于特定视图控制器

嘿,您只需要使用Xib或情节提要针对特定​​的视图控制器在tableview上拖动按钮,屏幕截图enter image description here下方便没有其他内容了:

在整个应用程序中

或者,如果您想在整个应用中添加浮动按钮,请使用此链接实现浮动按钮:

In iOS,how do I create a button that is always on top of all other view controllers?

本文链接:https://www.f2er.com/3168634.html

大家都在问