Monotouch destroyer with xib-less controllers

I currently have a monotouch project that uses a combination of a storyboard and some xib-less (ViewControllers that do not have corresponding xib or reference controllers in the Storyboard) (e.g. Monotouch.Dialog).

Everything works well, calling the storyboards from ViewControllers in xib-less. The problem I am facing is when I need to call from the ViewController without using xib back to the Storyboard view manager.

Stream example:

  • Storyboard
    • Tabviewcontroller
      • FirstViewController DialogViewController (not in Storyboard / xib-less)
        • AnotherViewController

The problem is loading the OtherViewController, for example.

var avc = new AnotherViewController();
avc.Person = person
_dvc.ActivateController(avc);

AnotherViewController, . , UIViewController ( , ). Segue MT.Dialog AnotherViewController Interface Builder, DialogViewController .

atm - AnotherViewController Storyboard - , / Storyboard .

( #) !

+5
1

Storyboard, identifier ( Storyboard), :

YourController *c = 
[storyboard instantiateViewControllerWithIdentifier:@"YourIdentifier"];

viewDidLoad, initWithNibName

0

All Articles