Is it bad to use call Storyboard view controllers from Monotouch dialog
viewcontrollers in the same project?

If it's ok to do, how do you call a Storyboard view controller
(FirstViewController) from within a monotouch.dialog controller - ie. What
do you pass into the constructor of the FirstViewController() I tried using
FirstViewController(this) but it don't wanna play for me, so must be doing
something daft!  If I create a parameterless default constructor on the
FirstViewController class, the controls on the class are always null - so
fvc.Title returns null.

eg.

*FirstViewController declaration:*

public FirstViewController (IntPtr handle) : base (handle)
{
   TabBarItem.Image = UIImage.FromBundle ("Images/first");
}

*Inside Monotouch.dialog DialogViewController:*

var fvc = new FirstViewController ({what_goes_here?!});
fvc.Title= "hi mom!";
dvc.ActivateController(fvc);

I really like being able to use Monotouch.dialog, but love also being able
to use Storyboards to design more fiddly screens.  I can call
Monotouch.dialog controllers fine from within Storyboard view controller
though.

--
View this message in context: 
http://monotouch.2284126.n4.nabble.com/Monotouch-Dialog-controller-calling-Storyboard-controller-a-bad-idea-tp4528682p4528682.html
Sent from the MonoTouch mailing list archive at Nabble.com.
_______________________________________________
MonoTouch mailing list
MonoTouch@lists.ximian.com
http://lists.ximian.com/mailman/listinfo/monotouch

Reply via email to