• Open Menu Close Menu
  • Apple
  • Shopping Bag
  • Apple
  • Mac
  • iPad
  • iPhone
  • Watch
  • TV
  • Music
  • Support
  • Search apple.com
  • Shopping Bag

Lists

Open Menu Close Menu
  • Terms and Conditions
  • Lists hosted on this site
  • Email the Postmaster
  • Tips for posting to public mailing lists
Re: IOS iPad PopOver Nav bar color
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: IOS iPad PopOver Nav bar color


  • Subject: Re: IOS iPad PopOver Nav bar color
  • From: Alex Zavatone <email@hidden>
  • Date: Fri, 22 Feb 2013 14:48:55 -0500

I just came across this the other day.

You can crack open AI or PS and draw your own and replace the graphic which is a great skill to learn.

http://layersmagazine.com/designing-ios-tab-and-navigation-bars-in-photoshop.html

Then use this:

if ([self.navigationController.navigationBar respondsToSelector:@selector(setBackgroundImage:forBarMetrics:)] ) {
    UIImage *image = [UIImage imageNamed:@"my new awesome nav bar image.png"];
    [self.navigationController.navigationBar setBackgroundImage:image forBarMetrics:UIBarMetricsDefault];
}

You can simply change the tint in a storyboard or in code.

http://stackoverflow.com/questions/7179741/ios-navigation-controller-change-toolbar-color

You also can create the gradient in code which is probably even more useful.

(FYI, this is awesome) http://stackoverflow.com/questions/1852319/uinavigationbar-gradient-details

And Ray has an example on how to draw gradients.  Enjoy.

http://www.raywenderlich.com/2079/core-graphics-101-shadows-and-gloss




On Feb 22, 2013, at 10:44 AM, Matt Neuburg wrote:

> On Sun, 17 Feb 2013 17:24:25 -0800, Trygve Inda <email@hidden> said:
>> I have a popover view and would like a nav-like title bar on it in a dark
>> color that matches the frame gradient of the popover fram. I can make the
>> nav bar grey or black, but can't seem to get it to apply the gradient that
>> the frame has.
>
> Starting in iOS 5 you can draw the frame and you can draw the navigation bar background. So to say you can't get the navigation bar to match the frame has is just false. Of course you can. m.
>
> --
> matt neuburg, phd = email@hidden, <http://www.apeth.net/matt/>
> A fool + a tool + an autorelease pool = cool!
> Programming iOS 5! http://shop.oreilly.com/product/0636920023562.do
> _______________________________________________
>
> Cocoa-dev mailing list (email@hidden)
>
> Please do not post admin requests or moderator comments to the list.
> Contact the moderators at cocoa-dev-admins(at)lists.apple.com
>
> Help/Unsubscribe/Update your Subscription:
>
> This email sent to email@hidden


_______________________________________________

Cocoa-dev mailing list (email@hidden)

Please do not post admin requests or moderator comments to the list.
Contact the moderators at cocoa-dev-admins(at)lists.apple.com

Help/Unsubscribe/Update your Subscription:

This email sent to email@hidden

  • Follow-Ups:
    • Re: IOS iPad PopOver Nav bar color
      • From: Izzy Fraimow <email@hidden>
References: 
 >Re: IOS iPad PopOver Nav bar color (From: Matt Neuburg <email@hidden>)

  • Prev by Date: Re: Tracking object references
  • Next by Date: Re: Tracking object references
  • Previous by thread: Re: IOS iPad PopOver Nav bar color
  • Next by thread: Re: IOS iPad PopOver Nav bar color
  • Index(es):
    • Date
    • Thread