I have been looking at the split view example project in Xojo and have not been able to figure out yet how to make it work like a split view application in Xcode.
The sample app only had landscape options turned on for supported orientations. When I turn on a portrait orientation the app launches with the detail view showing but no way to see the master list to select another option.
The Xcode app, when in portrait orientation, shows a “<” button at the top that slides out the master view to be able to select an option. When in landscape orientation the “<” button is not there, it just shows the master/detail view the same as the Xojo example app.
Any ideas on how to make the split view work like it does in Xcode?
They dont for now by default
I’ve looked at the declares required to do this but so far have not had enough time to figure it all out
Basically there are some declares that should allow you to set up how to access the master (the left hand side of the split)
You can have it slide out, pop down, etc
I am using a tabbed interface so if the iPad is allowed to rotate to portrait, only my “detail” view will be shown. Is there another way to solve this other than turning off the ability to rotate to portrait?
oh I see
you’re probably going to have to just not allow portrait for now
the issue I ran into is that when you’re in portrait mode the < button doesn’t automatically appear (you may be able to shove one in there with a declare)
the reveal options are attached to that and so without it you’re SOL
there is one option that is to show the split view even in portrait mode - but for what I wanted that was not viable so I did not try it
Did some research on this recently and several people decided that the answer was to fake it by putting a table next to a view. Since we don’t have containers, you could just use an empty canvas for holding the stuff on the right and draw a thin 0.5pt light gray line down the left edge.
Thanks Greg. I think that would be a lot of “fudging” for my app because of the way things relate to other things, but I can see how it would work for some apps. I’m content to disallow portrait on iPads for now. I use a couple of other line-of-business apps in one of my businesses that are landscape-only apps on iPad and it has never bothered me. I wouldn’t feel the same way if I was creating a “beautiful” consumer app though.
What makes you say that, specifically? Norman says there is framework support for this so I can’t understand why somebody with access to the full framework (i.e., Apple engineers) would bother faking it.
I was not referring to Apple, but to DropBox I use sometimes.
At any rate, am sorry, but to me there is no difference to the user if the duck quacks and walks the same way. In other words, if done right, a properly managed “split” in a portrait view should be undistinguishable from the kosher one. That is, until we actually have access to the Apple sanctionned wizardry.
No problem Michel. I just want to be clear that I believe this is possible within the framework, and is used by other apps (at least business/utility apps) and I would prefer that Xojo focuses on a framework solution rather than one involving smoke and mirrors.
I have no doubt Xojo will provide the real thing. But since that may not happen for a while at least one quarter or so if we are lucky, maybe more, some amount of creativity may be necessary in the meantime.
I just added a feature request today for higher graphics resolution, since Retina is now the norm, and not the exception on iOS. That is yet another much needed feature. How many much needed features are there on the Xojo to do list for iOS at present ? I frankly doubt that with all their might and competence, they will be able to make it happen before winter. Would love to be proven wrong, though.
Now what we’re missing is the ability to specify which view is primary, and it may even be a bug the way we handle it now (with no way to display the left pane). A feature request may be in order.