• 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: Izzy Fraimow <email@hidden>
  • Date: Sat, 23 Feb 2013 02:15:45 -0800

Can you point to a screen shot of what your desired effect is, and one that looks like what you're seeing now?

If you want something _exactly_ like the Calendar app (http://i.imgur.com/4LG3qU0.png) and that is not what you're getting, you need to populate the popover with a UINavigationController that contains the view you want to present.
It sounds like right now what you're doing is dropping in a UINavigationBar as just another subview of your VC's view, which will not get you the behavior you want.

On Fri, Feb 22, 2013 at 11:48 AM, Alex Zavatone <email@hidden> wrote:
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

_______________________________________________

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

References: 
 >Re: IOS iPad PopOver Nav bar color (From: Matt Neuburg <email@hidden>)
 >Re: IOS iPad PopOver Nav bar color (From: Alex Zavatone <email@hidden>)

  • Prev by Date: Re: [OT] Sync vs ASync Server Comms
  • Next by Date: Re: iOS books, etc for experienced OSX programmers
  • Previous by thread: Re: IOS iPad PopOver Nav bar color
  • Next by thread: Dynamic Creation
  • Index(es):
    • Date
    • Thread