ios - C# PresentViewController to a viewcontroller in storyboard -
i creating first xamarin-application (c#) in ios , having trouble navigating in storyboard. of tabbar-,navigation- , viewcontrollers in storyboard. in every viewcontroller, added menu (facebook- , youtube-style) slides side. there has possible return first viewcontroller (home) in storyboard. because menu active in every controller of application, don't use segues (it mess in storyboard).
so want use presentviewcontroller(), when this, page turnes black , doesn't show anything.
homeviewcontroller home = new homeviewcontroller(); presentviewcontroller(home, true, null);
does turn black because presentviewcontroller expects xib-file homeviewcontroller? want user stay in storyboard, can continue segueing through application.
does has idea?
thanks in advance.
did create empty constructor yourself? if so, not loading information storyboard, why it's black.
to create controller call this:
var controller = storyboard.instantiateviewcontroller("homeviewcontroller") uiviewcontroller;
you have open controller in xcode , set "storyboard id" "homeviewcontroller". second tab left (i think) in details pane. same tab change class.
Comments
Post a Comment