[MonoTouch] Help displaying UISplitViewController from UIViewController
chris.s
chris.stephens at innov8.co.uk
Thu Mar 29 16:16:17 UTC 2012
Firstly, I'm very new to monotouch and still trying to get to grips with the
concept of view controllers.
I've got an app that has a custom UISplitViewController which works fine and
displays as expected when assigned to UIWindow.RootViewController in my
AppDelegate.
But what I am trying to do is display a 'single screen' view at startup (for
app logon) and then move to the split view when clicking a button on this
first screen.
I'll give some skeleton outlines of the relevant bits of code i'm using....
AppDelegate.FinishedLaunching(....)
{
window = new UIWindow(UIScreen.MainScreen.Bounds);
ScreenStart _srcStart = new ScreenStart();
window.RootViewController = ScreenStart;
window.MakeKeyAndVisible();
}
....then my split view class....
public class DataSplitView : UISplitViewController
{
protected ScreenDataHeader scrDH;
protected ScreenDataDetail scrDD;
public DataSplitView() : base()
{
scrDH = new ScreenDataHeader();
scrDD = new ScreenDataDetail();
this.WillHideViewController += .....
this.WillShowViewController += ......
}
}
... then my button click event...
ScreenStart.btnShowData_Click(....)
{
DataSplitView dsView = new DataSplitView();
// How do display dsView from here?
}
Any pointers greatly appreciated!
Chris
--
View this message in context: http://monotouch.2284126.n4.nabble.com/Help-displaying-UISplitViewController-from-UIViewController-tp4515952p4515952.html
Sent from the MonoTouch mailing list archive at Nabble.com.
More information about the MonoTouch
mailing list