Thats rather cool - I wonder if I could use SetValueForKeyPath for
getting to the accessibility stuff....

(bother, no Mac here)

On Thu, May 3, 2012 at 12:55 PM, Bo Kingo Damgaard <[email protected]> wrote:
> 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



-- 
Nic Wise
t.  +44 7788 592 806 | @fastchicken | http://www.linkedin.com/in/nicwise
b. http://www.fastchicken.co.nz/

Earnest: Self-employed? Track your business expenses and income.
http://earnestapp.com
Nearest Bus: find when the next bus is coming to your stop. http://goo.gl/Vcz1p
mobileAgent (for FreeAgent): get your accounts in your pocket.
http://goo.gl/IuBU
Trip Wallet: Keep track of your budget on the go: http://goo.gl/ePhKa
London Bike App: Find the nearest Boris Bike, and get riding! http://goo.gl/Icp2
_______________________________________________
MonoTouch mailing list
[email protected]
http://lists.ximian.com/mailman/listinfo/monotouch

Reply via email to