I have created a navigation controller with a stack of view controllers.
I want to add a subview at the bottom which stays static (does not move) while the user navigates between this stack of views.
Like in some apps, there is an “ads bar” at the bottom.
How can I do this?
If I understand correctly, this is what you want:
You can to this by creating a custom UIViewController that encloses the UINavigationController. Create a new class called “CustomViewController”, and paste the following code:
Interface
Implementation:
Now to use the CustomViewController: