我使用 Storyboard中的 tableviewcontroller 上的原型(prototype)单元制作了一个表格 View 。
我想要在 uitableview 上有一个 float 按钮。 (按钮不会随桌面 View 滚动)。
在寻找解决方案时..我发现可以通过向 super View 添加按钮来实现(在这种情况下,Uiviewcontroller 是 Uitableview 的子类)。
谁能告诉我如何使用 Storyboard做到这一点?
最佳答案
我认为您要做的最好的事情就是创建一个 UIViewController
并添加一个 UITableView
.然后您还可以添加 UIButton
你想要 View Controller 的 View 。不要忘记将 View Controller 设置为 TableView 的委托(delegate)和数据源,并添加 <UITableViewDataSource,UITableViewDelegate>
到您的 View Controller 界面。
关于ios - 使用 Storyboard在 UItableview 上 float 按钮,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/20259935/