I haven't done a Storyboard with MT.D yet, but opening a Storyboard viewcontroller from regular old TableSource.RowSelected can be done like this (note the "Identifier" must be set in the Storyboard+Attributes Inspector for your view controller)
// Specially for Storyboard !! var detail = viewController.Storyboard.InstantiateViewController("vegeIdentifier") as myVegeViewCtrl; detail.Title = tableItems[indexPath.Row].Heading; detail.LoadUrl (tableItems[indexPath.Row].Url); viewController.NavigationController.PushViewController (detail, true); HTH cd On Tue, Apr 3, 2012 at 10:55 PM, bustergonad <gonad2...@hotmail.co.uk>wrote: > 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 > >
_______________________________________________ MonoTouch mailing list MonoTouch@lists.ximian.com http://lists.ximian.com/mailman/listinfo/monotouch