Hi
I've found a way from SO that work, and is pretty easy. I needed to make the
navbar transparent and I did with this code:
public class MyNavController : UINavigationController
{
public MyNavController(UIViewController controller) : base(controller) {
}
public override void PushViewController (UIViewController
viewController,
bool animated)
{
base.PushViewController (viewController, animated);
}
public override void ViewDidLoad ()
{
base.ViewDidLoad ();
//Set the nav bar
SetValueForKeyPath(new MyNavBar(),new
NSString("navigationBar"));
NavigationBar.Translucent = true;
NavigationBar.TintColor = UIColor.Clear;
}
class MyNavBar : UINavigationBar
{
public override void Draw (RectangleF rect)
{
if (TintColor == UIColor.Clear) {
}
else {
base.Draw (rect);
}
}
}
}
The key here is the SetValueForKeyPath
/Bo
--
View this message in context:
http://monotouch.2284126.n4.nabble.com/Obj-C-Categories-in-Monotouch-tp4567460p4605788.html
Sent from the MonoTouch mailing list archive at Nabble.com.
_______________________________________________
MonoTouch mailing list
[email protected]
http://lists.ximian.com/mailman/listinfo/monotouch