Putting a bar on the bottom of the UIPageViewController - iphone

I'm using the UIPageViewController in my storyboard and I want to create a bar on the bottom of the screen with a label on it. So something like the navigation bar, this always stays there when you switch pages from the UIPageViewController. However on my storyboard I cannot drop a view or label on the PageViewController, how can I achieve this?
Example:

Embed the PageViewController in a container which is added on another View controller. This image will explain it better.
Once that is done you can add the custom view as a subview over it.

Related

Present view underneath another

I'm trying to pop up a view controller from the bottom of the screen but I want a view from its parent view controller to show on top of it so that it slides up from underneath this view. There's no interactivity with this extra view on top of everything. Is there a reasonably simple way to do this?
There are various ways to achieve this:
You can create a xib and add over the view controller.
You also create a programmatically view and add over the VC.
You also can drag view over the VC in storyboard and initially hide the view.
Show with the animation.

Material swift : UIView with Searchbar and TabBar moves out of view swift 3

I have SearchBar and TabBar on a view which i created using CosmicMind Swift Material framework for swift (https://github.com/CosmicMind/Material). Below is the code i have for setting up the view:
window = UIWindow(frame: Screen.bounds)
let tabBarControllers = [MySearchBar(rootViewController:ViewController2()), MySearchBar2(rootViewController:ViewController1())]
window!.rootViewController = TabBarController(viewControllers: tabBarControllers)
window!.makeKeyAndVisible()
So basically, I have tab bar, which has search bar which in turn has a view. I created a xib for the view so that I can drag and drop and position things with the interface builder. The problem I am running to is that, the tab bar is covering some of my labels. See the screenshot below
When i run my app I get the view shown below. As you can see the label 2 is out of view, I have tried everything possible but cant figure it out and to make the view fit between the search bar and the tab bar correctly
Any help will be greatly appreciated
My screenshot of my XIB view in xcode:
The way you are approaching this may turn out more complicated than necessary. What you should do, if you are going to have a SearchBar on both pages of the TabBar, is set the TabBar as the child (rootViewController) of the SearchBar, so there will only be one instance of each. Then add constraints for auto layout within your view controller that has the labels. That should work for you :)

Add Tabs To MasterView Controller Project

I created a MasterViewController project with a tableView, now I'd like to add some tabs to this. I tried to just drag and drop the tab bar into the MasterViewController and the tabs show, but they are linked the the last cell in the tableView.
Is there any way to make the tabs stay in place so they are always displayed? What I am trying to accomplish is to give the user buttons to push to organize the data in the tableView, so I'm open to other suggestions.
Here are the pictures:
You need to have your controller be a UIViewController, not a UITableViewController (where the table view is the controller's self.view, and is full screen). If you use a UIViewController, you can add a table view, and size it such that you have room at the bottom to add the tab bar. In that case, both the table view and the tab bar are subviews of the controller's self.view. The way you're trying it, the tab bar is added to the table's scroll view.
It sounds like you added it as a subview of the table view, so as the table view scrolls it scrolls too. Look at creating a container view to hold both the tableView and tab bar / segmented control / buttons positioned below it. You will need to make the controller a subclass of UIViewController instead of UITableViewController.
Alternatively, use the navigation bar to add some edit button(s), either to enter an editing mode which shows controls on each row or where the buttons actually edit the currently selected row.
Tab bars are container controllers and are used to present a different mode of your application. If you want to only organize your tableview data, my suggestion is to use UISegmentedControl.

Non-Modal view without NavigationController

I have an app built from the UITabBarController starter project. The first tab is part of the main.xib that contains the tab bar. I would like to slide a view up from the bottom on top of that tab's view that only covers part of the screen. My understanding is that you can only cover part of the screen if you make the top view non-modal, but I don't see a way to do that without a NavigationController.
How can I do this?
you can add a UIView as a subview to the current view, and then animate its appearance into the screen using animation blocks, or Quartz or however you would like.
presentModalViewController: is actually a method that belongs to UIViewController, the superclass of UINavigationController, so you can use it from any view controller, not just a navigation controller.
Have you tried using a UIActionSheet? That's an easy way to get a view with a few buttons for user input to slide up and only cover the bottom portion of the current view.

iphone dev - Can UINavigationController animate part of the view?

My app is using a navigation controller and it has a navigation bar, a table view and an image on each view. Those elements layout from top to bottom with no overlapping.
Now because I have the exactly same image for every view (a logo), is it possible to animate only the navigation bar and the table view while the views push and pop? I want the logo always stays on the screen.
Thanks in advance.
Interesting idea. You might try adding the view directly as a subview of the navigation controller's view, rather than making it part of any of the controllers it manages—in that case, you probably also want to give the view a particular tag, then retrieve a reference to it in your individual controllers' -viewWillAppear:animated: and call -bringSubviewToFront: with it on the navigation controller.