How to add a view above my NavigationControllers TableView

How to add a view above my NavigationControllers TableView

眉黛浅 发布于 2021-11-29 字数 424 浏览 676 回复 1 原文

I have created a reusable class that fades in a "loading message" and indicator at the foot of the devices screen.

The problem I have is that when I'm adding the loadingview to a view that is contained in a NavigationController I want the view to stay at the bottom of the screen, even when scrolling the tableview.

How can i add a view ABOVE the TableView that is not affected by scrolling and such?

如果你对这篇文章有疑问,欢迎到本站 社区 发帖提问或使用手Q扫描下方二维码加群参与讨论,获取更多帮助。

扫码加入群聊

发布评论

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

评论(1

夜深人未静 2022-06-07 1 楼

Add it to the view containing the UITableView so that it is a peer to the UITableView rather than a child of it. Generally, this is the UIWindow that your application delegate owns.