更改 tableview 以在 iphone 中查看

发布于 2024-10-09 20:37:15 字数 138 浏览 0 评论 0原文

我有一个 tableview nib 文件。(包含一个列表)

我想用它添加一些按钮 所以我想更改 tableview 以查看并将 tableview 放入该视图中 然后将按钮添加到视图中。

在类文件中要更改什么以及如何执行此操作?

i'm having a tableview nib file.(contains a list)

i want to add some buttons with it
so i want to change the tableview to view and put the tableview inside that view
then add buttons to the view..

what to change in the class files and how to do this?

如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

扫码二维码加入Web技术交流群

发布评论

需要 登录 才能够评论, 你可以免费 注册 一个本站的账号。

评论(1

无可置疑 2024-10-16 20:37:15

如果你想改变tableview的视图,你可以在IBOutlet中做。

通过将 Inspector Identity 中的值从 UITableView 更改为 view。这样它将更改为视图,您可以向该视图添加按钮和一些按钮。

否则,您可以添加按钮,而无需使用代码更改 IBOutlet。

您可以更改 UITableView 框架,并且可以向视图添加按钮。

问候,

萨蒂亚

if you want to change the tableview to view, you can do in the IBOutlet.

By changing the value in the Inspector Identity from UITableView to view. So that it will change to view and you can add buttons and some to that view.

or else you can add the buttons with out changing the IBOutlet with code.

you can change the UITableView frame and you can add buttons to the view.

Regards,

Satya

~没有更多了~
我们使用 Cookies 和其他技术来定制您的体验包括您的登录状态等。通过阅读我们的 隐私政策 了解更多相关信息。 单击 接受 或继续使用网站,即表示您同意使用 Cookies 和您的相关数据。
原文