How does view1, on the left, call view2 on the left; a method with parm ? I’m getting a compile error.
http://xojo.helpdocsonline.com/iosview$ParentSplitView
To see how to use this, look at Examples/iOS/Controls/SplitViewExample
You are talking about “Action” event of “MasterTable”? I saw that. That just changes one control’s data.
I want to have a method run with data passed. I don’t know how to relate that to the above.
What do you mean? What data? The property gives you access to the Views in the SplitView. From there you should be able to get at any data you need to pass to your method.
[quote=152415:@Paul Lefebvre]http://xojo.helpdocsonline.com/iosview$ParentSplitView
To see how to use this, look at Examples/iOS/Controls/SplitViewExample[/quote]
Hi Paul,
Is there an example of split view that support all iPad orientations? Only having landscape is ok for now, but I’d like to have it work more like the Mail app. Any ideas?
[quote=155458:@Hal Gumbert]Hi Paul,
Is there an example of split view that support all iPad orientations? Only having landscape is ok for now, but I’d like to have it work more like the Mail app. Any ideas?[/quote]
Since placing the iPad in Portrait mode puts the right side view in full screen, here is an example of displaying a View3 when the iPad is rotated :
Sub Resized()
if self.size.Width = 768 then
dim v as new view3
self.pushto(v)
end if
End Sub
That way, you can have a very different design for iPad portrait orientation than what the view used on the right in split view can provide. You can even draw a vertical line on the view to mimic an horizontal split. Just an idea, or course.
Thanks Michel. I’ll need to mess with that.
The Mail app works a bit differently:
- In landscape, it acts like the Xojo SplitView example.
- In portrait, it acts like an iPhone with the Master & Detail view headers merged and the left header button shows a overlay.
- In portrait on iPhone 6 Plus, it acts like a regular iPhone, but in landscape like an iPad.
There are a few behaviors to deal with…
[quote=155860:@Hal Gumbert]Thanks Michel. I’ll need to mess with that.
The Mail app works a bit differently:
- In landscape, it acts like the Xojo SplitView example.
- In portrait, it acts like an iPhone with the Master & Detail view headers merged and the left header button shows a overlay.
- In portrait on iPhone 6 Plus, it acts like a regular iPhone, but in landscape like an iPad.
There are a few behaviors to deal with…[/quote]
From what I see, on iPad Portrait it works like the default Xojo split view, but when one taps on “inbox”, it moves an area in, containing all the options the iPhone would show in full screen portrait. Not unlike what I described, BTW. An area which moves away when one taps in the messages area. I believe the list that moves in an out is in a UIContainerView, sort of a Container Control we have unfortunately not access to yet, which hopefully will be implemented. It can be emulated with a rectangle and iOSTabViews, though.
The iPhone 6 Plus is bound to make it difficult for developers. In terms of screen size, it is neither iPad Mini nor iPhone, so I guess horizontal split view is fine. The issue is that Xojo forces you to chose between split, tab and full view. So you will need to emulate that.
All that for me calls for an astute management of views according to screen size, tailored to best fit.