Is it possible to create a mixed Master-Detail and Tabbed bar application with Xcode? - xcode4.3

I'm trying to create a Master-Detail iPad application with a list of saved files in the Master view, and the main interface in the detail view. There will be many different views in the detail, however, and I would like to be able to use a tab bar so users can quickly move between detail views. Is it possible to create a tab bar to navigate just between the different detail views, and still keep the same master view? I could just put in a "main menu" type view, which would have buttons to get to all the different main interfaces, but I'd like to avoid doing that if I can.
Thanks!
Mike

From everything I've seen, this type of layout isn't possible, and isn't really consistent with what a split view should be used for. The more appropriate way to do this would be to use standard UIViews in a UITabBarController, then having the saved files as it's own view opened in a popover.

Related

How to structure code with an animation on part of the view

I want to make an iPad app with multiple "forms" that must be filled out. The view has a header and a footer section that are the same on all views. The middle part contains the form fields. I would like the animation between the pages to be only on the middle part. That is: The header and footer must stay in the view while the middle part slides to the next form.
I can create this easily in code, where I configure all fields that must be inserted in the code and then create the animation. However, this feels wrong and not very maintainable. Therefore, I would like to use the story board to configure each of the form pages. The question is: How do I do this? Do I need one or several View Controllers? How do I best create the views and organize the code?
PS. I work on an iOS 5.0 app
The best way I have found out to do this is to create the views in xib-files. Then the view that should be shown next can be generated from the xib-file. All is done in one view controller (since a new view controller would take over the entire screen). This is easily maintainable and easy to animate.

How to create a master view for an iPad app

What I'm looking to do is create some kind of master view, that would have the same header (with a logo), footer (with some text and a button), background image and navigation (not a navigation bar, just a few buttons) on every view.
You could think of what I'm after doing is like a PowerPoint presentation. Create a master slide that's layout is used through every slide, you create a new slide and it takes across all the masters properties (header, footer, background etc) and then it's just the content that changes on each new slide.
However, I'm not too sure how I would do this in an iOS application. I've had a look on Google searching many different phrases but all seem to be about iPad split views and using cells of a tableview, which isn't what I'm after.
All I can think to do is create a single view controller class, with a view, and then add a sub UIView for each page I want (about 15-20), but with the one class, and every page having different content and a lot of code required for each one, that's going to get messy! Or I simply recreate the footer and header etc on every view controller, so if there were to be a change, then I'd have 20 views (more if it grows) to edit! So I'm just wondering if there's a simple way of getting what I'm after.
The app will be for iPad only, and I can use any OS up to 5, so xibs or storyboards are fine. And this won't be on the app store if that helps.
I've done a quick drawing below. The master view with all my bits to be used on each page, and then content slides that will slot in and out of the mater's content area.
Check out Containment View Controllers. This kind of presentation is exactly what they are designed to handle. There is a really nice WWDC presentation from 2012 I believe that illustrates how these work. There are also several tutorials online if you search.
maybe the best option is to create a master detail page. Then for each new page, call the master?
If u want to show header and footer view in whole apps then add header and footer view in window not in view controller i think it will work

Is it possible multiple tab bar controller in an application in objective c

I want to switch different tab bar controller with root view controller's buttons. I mean that I have several buttons and this buttons must have different tab bar controller. Is it possible?
It is possible if you have a navigationcontroller as a parent of both tabbarcontrolllers.
However I would advise against such an UI as it will most likely be confusing to the end user.
Why would you want to use this approach?
have a look at this: iOs Human Interface Guideline
I think that it's not recommended. For example:
Use a tab bar to give users access to different perspectives on the same set of data or different subtasks related to the overall function of your app. When you use a tab bar, follow these guidelines:
Don’t use a tab bar to give users controls that act on elements in the current mode or screen. If you need to provide controls for your users, use a toolbar instead (for usage guidelines, see “Toolbar”).
In general, use a tab bar to organize information at the application level. A tab bar is well-suited for use in the main app view because it’s a good way to flatten your information hierarchy and provide access to several peer information categories or modes at one time.

In IB how do I place existing components inside a new SplitView?

I'm updating one of my Mac apps right now, and just discovered I need to place a SplitView behind all of my components. Is the only way to go about this the way I'm thinking? I need to move all components out of the current view and add a SplitView, then move everything back in?
The components must be placed inside the split view. Using the document window in Interface Builder might alleviate some of the burden.
There’s a handy shortcut in Interface Builder for this operation: the Layout > Embed Objects In menu item. For instance, if you have two views and want to create an split view based on them, select them both and choose Layout > Embed Objects In > Split View.
And in XCode 4.1: Editor > Embed In > Split View

Multiple Split views in one App

I am building an iPad app and wish to have the user open to a main menu screen (UIView). The view will contain several buttons that each, in turn, will load a different split view controller. Which each will have a table view to load different nibs.
I have the nibs and table views but I don't know to code for different split views.
Can I do this?
Thanks for your help
Dave
Have you seen MGSplitViewController?
I believe your looking for something like this: MultipleDetailViews