thedillonb / MonoTouch.SlideoutNavigation

A MonoTouch slide-out UI component
40 stars 24 forks source link

How to use with storyboards [Fixed in development branch] #1

Open flatplanetpl opened 11 years ago

flatplanetpl commented 11 years ago

Because I don't have any contact to you I decided to write issue. I try to use this very good "SlideoutNavigation" in storyboard. In storyboard i made 3 controllers:

  1. to contain window and derive from SlideoutNavigationController
  2. Menu (Tableviewcontroller)
  3. Dashboard (viewcontroller)

In constructor custom class (extends from SlideoutNavigationController) is wrote this code:

var menu= Storyboard.InstantiateViewController ("slidemenu") as UIViewController; var dashboard=Storyboard.InstantiateViewController ("dashboard") as UIViewController; this.MenuView = menu; this.TopView = dashboard;

but exception occurred in this line: this.MenuView = menu;.

Have you better idea how to use SlideoutNavigation with storyboard.

Thanks for help! Damian damian@flatplanet.pl

flatplanetpl commented 11 years ago

ok.. for now menu working with small change!

Because story board instantiate viewcontrollers with IntPtr constructor I move code from parameterless constructor to IntPtr (IntPtr handle)

and now menu works!

thedillonb commented 11 years ago

@flatplanetpl Outstanding! Very well done.

twanwv commented 11 years ago

Storyboard support now available in the development branch, mind you, landscape mode is not functioning correctly and should be fixed either by fixing it yourself or waiting for the next update on the development branch.