[MonoTouch] MT.Dialog iPad / Universal
Craig Dunn
craig.dunn at conceptdevelopment.net
Thu Mar 29 22:02:22 UTC 2012
the MWC sample uses the same MT.Dialog screens in iPhone & iPad - on the
phone they're fullscreen (obviously) and on the iPad they sit in a
SplitView (for example: the Speakers and Sessions lists).
Pretty much the only special handling required was in the Element.Selected
method - for iPhone we push a new controller, for iPad we have passed a
reference to the splitView into the ctor, and we trigger the new screen
load from there.
if (splitView != null)
splitView.ShowSession(session.ID);
else {
var sds = new MWC.iOS.Screens.iPhone.Sessions.SessionDetailsScreen
(session.ID);
sds.Title = "Session";
dvc.ActivateController (sds);
}
https://github.com/xamarin/mobile-samples/tree/master/MWC
look at:
Screens/iPad/Sessions/SessionSplitView.cs
Screens/iPhone/Sessions/SessionsScreen.cs
UI/CustomElements/SessionElement.cs
HTH
cd
On Fri, Mar 30, 2012 at 8:36 AM, Nic Wise <nicw at fastchicken.co.nz> wrote:
> I think someone commented on the list a while back that you have to
> break the bond with the UINavigationController, as it needs to go into
> a UISplitView. Not sure if it ever got released tho
>
> On Thu, Mar 29, 2012 at 21:21, danmiser <danmiser at gmail.com> wrote:
> > Are there any writeups or samples about how to use MT.Dialog to display a
> > different interface on an iPad with a universal application? Right now,
> the
> > iPhone app works great. It's very data entry focused and uses nothing but
> > MT.Dialog DialogViewControllers. I'm thinking of going with a split
> screen
> > when launched from an iPad with a list of menus on the left and the
> content
> > area reacting to those selctions.
> >
> > Any thoughts?
> >
> > --
> > View this message in context:
> http://monotouch.2284126.n4.nabble.com/MT-Dialog-iPad-Universal-tp4516860p4516860.html
> > Sent from the MonoTouch mailing list archive at Nabble.com.
> > _______________________________________________
> > MonoTouch mailing list
> > MonoTouch at lists.ximian.com
> > http://lists.ximian.com/mailman/listinfo/monotouch
>
>
>
> --
> Nic Wise
> t. +44 7788 592 806 | @fastchicken | http://www.linkedin.com/in/nicwise
> b. http://www.fastchicken.co.nz/
>
> Nearest Bus: find when the next bus is coming to your stop.
> http://goo.gl/Vcz1p
> mobileAgent (for FreeAgent): get your accounts in your pocket.
> http://goo.gl/IuBU
> Trip Wallet: Keep track of your budget on the go: http://goo.gl/ePhKa
> London Bike App: Find the nearest Boris Bike, and get riding!
> http://goo.gl/Icp2
> _______________________________________________
> MonoTouch mailing list
> MonoTouch at lists.ximian.com
> http://lists.ximian.com/mailman/listinfo/monotouch
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.ximian.com/pipermail/monotouch/attachments/20120330/4dab95f4/attachment.html>
More information about the MonoTouch
mailing list