Howdy all,
Is there a known reason why inheriting UINavigationController would not work
the same as directly using the UINavigationController?
this very simple class below (with the constructors just passing to the base
and doing nothing else) loads a blank (black) screen.. where as directly
creating a UINavigationController works just fine..
public class MyNavViewControllerBase: UINavigationController
{
public MyNavViewControllerBase (UIViewController
viewController):base(viewController)
{
//setBackground(this);
}
public MyNavViewControllerBase (NSCoder coder):base(coder)
{
//setBackground (this);
}
public MyNavViewControllerBase ():base()
{
//setBackground (this);
}
public MyNavViewControllerBase (IntPtr ptr):base(ptr)
{
//setBackground (this);
}
public MyNavViewControllerBase (NSObjectFlag flag):base(flag)
{
//setBackground (this);
}
public MyNavViewControllerBase (string nibName, NSBundle
bundle):base(nibName,bundle)
{
//setBackground (this);
}
}
We are initializing our UINavigationController in code in our AppDelegate so
there isn't an issue with the NIB here. Ergo
UINavigationController myNavController = new
UINavigationController(myfirstViewController);
works fine but
MyNavViewControllerBase myNavController = new
MyNavViewControllerBase(myfirstViewController);
just shows a black screen.
Thanks
Josh
_______________________________________________
MonoTouch mailing list
[email protected]
http://lists.ximian.com/mailman/listinfo/monotouch