How to use initWithNavigationBarClass with MonoTouch?
I'm trying to port an existing Objective-C class, but it uses initWithNavigationBarClass which somehow tells the UINavigationController to use the the custom NavigationBarClass rather than the stock one, which is exactly what I'm trying to do. My problem is, I don't see any way to accomplish this with MonoTouch? The UINavigationController has a read-only NavigationBar member, so I can't simply construct one?
Re: How to use initWithNavigationBarClass with MonoTouch?
Tried this; no joy;
public class CRNavigationController : UINavigationController
public CRNavigationController(UIViewController vc) : base(vc)
CRNavigationBar nb = new CRNavigationBar();
Handle = Messaging.intptr_objc_msgSend_intptr(this.Handle, Selector.GetHandle("initWithNavigationBarClass:toolbarClass:"), nb.Handle);