iPad: creating a custom UISplitViewController - uisplitviewcontroller

I've been playing around with UISplitViewController for a while, but it's not customizable enough for my needs, so I was thinking I could create my own custom UISplitViewController, and what it would take to do so. Is it just a matter of creating 2 view controllers next to each other, with the master view keeping a reference to the detail view, and handling rotations properly (to show and hide the popover), or is there more to it than that?

I would take a look at Matt Legend Gemmell's custom splitview controller that was made last year for some pointers:
https://github.com/mattgemmell/MGSplitViewController

Related

Is it possible to navigate to a dynamic page in Exrin

Is it possible in Exrin to push to the navigation a contentpage I create in run time and afterwards remove it from the navigation stack?
Unfortunately it isn't possible at the moment, as you have to define the type, to create the navigation mapping.
If you wanted to look into a PR to do this, would be happy to accept this PR. It would involve creating a new method to navigate to an IView. Would also have to think about how it interacts with Stacks.

MonoTouch UITabBarController and UINavigationController Title

I have a UITabBarController with various views to navigate around my application.
I wish to add a nice title to the top of these and figured the nicest way is with the UINavigationController.
Found a nice article in xcode to do this: http://b00gizm.posterous.com/how-to-embed-a-navigation-controller-inside-a
Obviously tried following the article above with no luck... does anyone know how to do this on Mono using C#?
If you want to display titles on the top side of your views, it would be better to just create other views for this purpose alone.
The UINavigationController has a specific purpose and that is to provide navigation among various controllers in its stack, which means it will also need at least a root view controller.

Flex navigate to another Mxml page?

I am having difficulty navigating to different MXML pages in my Flex application. I checked some other questions on SO about it but they seemed to be to do with tab navigation.
I am trying to navigate from one MXML page to another via Actionscript code. How is this possible?
Cheers
Edit:
I am a real beginner in Flex and I worked out that I actually needed to use States, and have now discovered how to use them. Thanks for your help.
You don't navigate between MXML pages. MXMLs are not pages to begin with. Instead they are components, that are displayed in the application. So if you want to change the current display, then you need to remove the already added components, and add others that should be displayed now.
There are different approaches to do this. The very raw way of manually removing elements is rarely used, instead there are two main methods: ViewStacks and display states. Display states should be used when there are not many different changes in a view, for example when you click a checkbox that adds new options to an existing formular. If you want to change the whole displayed content (this does not have to be the whole application content though, think in components instead), you can use ViewStacks.
ViewStacks are like a stack of paper, where each paper reflects a single view. So if you want to display something else, you move the new view to the top, hiding all others below. Many components, including TabNavigators, are just ViewStacks with an additional menu to select the view that should be displayed. But you can also just use a ViewStack and manually change to what you want to show.
Flex is not sidebased like html.
You have to instantiate or remove classes, components or all this stuff.
i would use the states.
You can register handler to buttons and swap the state.
Then you are able to instatiate or remove components via the tsates.
Which flex version dou you use? The management of the states are changing between flex3 and flex4
Assume, you have one app with two content areas, home and gallery. First you have to create these two areas with project->new->component and named there related.
After that, you instanciate both components in your app.
Define two states, home and gallery and swap these with a button or two.
set the propert excludefrom or include with the name of the states. finally, you have an app with two content areas, but you never swap pages, you instanciate or remove components in runtime.
br
Frank
BR
Frank

Create Next/Previous node links in a node-panel in Drupal?

So I am on a seemingly simple mission of creating previous/next buttons for a type of nodes, like for pages in a book. Sounds easy enough, considering that there is the Custom Pager module. But, the module does not work for nodes which are built using panels, as described in this bug: http://drupal.org/node/591782
There is another module which creates an API for this operation, but it does not seem to have custom sorting based on a view.
Any ideas would be highly appreciated and thank you in advance.
What about using the views module (and its built-in pager functionality) to display a single node at a time?
In the end I used the code described in the bottom of this page, but had to modify it a little to sort by date:
http://drupal.org/node/37767
Then put it into a custom content pane using (note that I rearranged the variable order):
print node_sibling(node_load(arg(1)), 'previous')
print node_sibling(node_load(arg(1)), 'next')

Create drag-able panels in Flex like its in netvibes.com

I want to create a news application for my website.
My question is how should i create drag-able panels/canvas inside another panel/canvas.
What i exactly intend to do can be seen on netvibes.com . The website has different panels of every news group, and this panel could be moved from one place to other, but in a well defined manner. And the other panel take over the place of dragged panel.
Is there any component in flex, which can help me make something like that.
If i was unable to make my question clear, plz let me know, i will try to make it more clear.
Regards
Zeeshan
A TileList with drag and drop enabled should be able to accomplish something like that. Or, use a Spark List with a custom layout that you create.
It might be a bit tricky getting the list elements to drag and drop based on clicking the title, but it should be doable.
I think you should consider a more advanced solution with drap-n-drop with a custom panel based component. The places the panels can move can be implemented with a different custom canvas based component. The advantage would be to move the components into different custom positions and panels can be resized independent of each other.
Adobe has some good tutorials for drag-drop operations.

Resources