iOS 5 Split View Controller - ios

I am familiar with the split view controller for the iPad but I was wondering if there was a way to have two levels of that. What I want is a tab bar where I pick a category. What is then shown on the left side of the split view is a sub-category and then when I select that I want to display the items in a table view that fit those two. Once a user selects an item then the right side of the split view will show the details about that item.
Can this be done? If so, an example would be greatly appreciated.

You can definitely drill down through table view controllers on the left side of a split view. The master view controller is usually wrapped by a navigation controller so you can simply push new table views until you get to the lowest-level category, then have it update the detail.

Related

how to manage view controllers in a sequential pattern - swift

I'm trying to implement sth like images below. there are some views that should be displayed in a sequential order and a bar above them shows the flow of tasks.
as it is shown, first profile view should be displayed. when the user clicks on Go to Next View Button second view (price view) should be displayed. the top bar shows the current view where we are in it. I've tried PagingMenuController already to create a menu with views and then disable scrolling. but PagingMenuController loads all views at the same time and also i don't know how to go to next menu item within child views. now I'm thinking of a container view might be helpful but i didn't use container view so far and i don't know it's good for my purpose or not.
also i want that top bar without swiping between views (only on buttons) and one enable view at the same time.
any helps would be apprectiated.
Your question is both broad and vague. My answer is also going to be fairly high level. I suggest you follow my outline, and if you get stuck on a particular step, post your code, tell us about the problem you're having, and we can help you fix it.
This is pretty simple. Create custom view controller. Give it a container view at the bottom that would contain the current child view controller. Use view controller transition methods to switch between child view controllers. You'll want to add layout anchors to each new child view controllers to pin all of it's view's edges to the edges of the container view.
Create a custom control on top to show the dot and highlight the title of the current view controller.
If you want the next/previous buttons to be on the child view controllers, put them there, and add a delegate property to all the child view controllers that points to the parent view controller, with next and previous methods.
BTW, in languages, like English, where text is laid out from left to right, I would think your first page would be on the left and the last page would be on the right. (I think it makes more sense for profile to be on the left and pay on the right.)

TableViewController and Tab Views (swift)

I currently have a basic app where there's a list of items in a TableView and I want to adapt a tab bar underneath the TableView, where all it would do it load a different set of data onto the table. Same UI.
What would be the best way to handle this? Only thing I can think of is to create another separate controller and copy and paste the most of the code in here and direct the TabBarController to that controller.
Is there a more efficient way of doing this, such as somehow creating an adapter or checking which tab is selected and then listing the data?
Sorry if I dont make any sense. Thanks in advance.
You need to add child controllers(for tabs) into a base controller and replace the view of base-controller from selected tab child view-controller
This link may help you to make a custom tabbar:
https://github.com/hollance/MHTabBarController
Start a new Xcode project and pick Tabbed Application as your template. That will give you your tabs and two empty view controllers. You can either add a UITableView to those existing controllers or you can delete them both and add as many Table View Controllers as you'll need. To attach a new controller to an existing Tab Bar Controller, you do a cntl-drag from the Tab Bar Controller to each of the new controllers. Then pick "view controllers" as the relationship.
You can use the same view controller class for your Table View Controllers. To differentiate the views, use the "tag" field on the View object on each Table View Controller - Give each one a different number. Then in the generic Table View Controller code you can access that number as view.tag().

How to arrange Tabbar on the left side of the screen

I am developing one iPad application using storyboard.For my application i need one tab bar on the left side of the screen.I do not want external liberies for tab bar.Is this possible to arrange the tab bar available in the story board arrange on the left side of the screen.
Like already mentioned, use split view controller which will separate your iPad UI to two parts:
Master view controller - This is usually a table view or collection view that display all elements.
Detail view controller - This displays the detail of selected item in master view controller.
You can communicate between them with delegates, NSNotificationCenter or observers.
You can easily add separate UITabBar views to both master and detail view controller.
You can also read more about it on the links below:
http://www.raywenderlich.com/29469/ipad-for-iphone-developers-101-in-ios-6-uisplitview-tutorial
Good iPad SplitViewController tutorial?

Split view in iPad

I am trying to create an iPad app wherein I need to maintain a split view throughout the app. In the split view, the left view is static and the rightview changes according to the selection of left view. The right view in turn might contain toolbars through which I can navigate to new views, But the left view always remains same.
I might have gone in with a split view but the problem is the left view is not table view but I want to use a customised view here. Is it acceptable to do this?
Please suggest if there are any better ways make a split view without using the default split view controller.
A split view controller can have any type of view in each of its 'panes', the standard template has a table view but there is no requirement to do so. Start with the template and then edit the master view controller so it's a subclass of UIViewController, you can also remove or edit the XIB as you require.

iPad Split View "Zoom Down" Table View

I am trying to get a good idea of a good way to add items to a split view for iPad. My idea was where you tap the plus button and the table view scrolls down (quickly) to below the table that is there to a screen where you can enter in the new stuff. Then when you click done it zooms back up to the main table.
Is this possible and/or what is a better way to do a addition for a split view with a table to the left?
the point of using a split view is to flatten the heirarchy of doing things with a table view (basically), so why not when you hit the add button, have a view come up in the detail view (the right hand side) with fields to edit and etc? Or use a popover controller to display the 'add cell' view.

Resources