• 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: UINavigationBar appearance not updating
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: UINavigationBar appearance not updating


  • Subject: Re: UINavigationBar appearance not updating
  • From: Matt Neuburg <email@hidden>
  • Date: Fri, 13 Apr 2012 11:32:04 -0700

On Wed, 11 Apr 2012 22:24:45 +0800, Roland King <email@hidden> said:
>
>To do it I'm using the UIAppearance protocol, here's the method which does the work.
>
>-(void)updateTintsForICloud
>{
>	BOOL usingICloud = [ [ HIPSettings sharedSettings ] usingICloud ];
>	[ [ UINavigationBar appearance ] setTintColor:usingICloud ? [ UIColor colorWithRed:0 green:0 blue:.3 alpha:1.0f ] : [ UIColor clearColor ] ];
>}
>
>it doesn't actually update the on-screen nav bar, nor any subsequent navbar pushes

Correct. As my book tells you, "The rule seems to be that sending a message to an appearance proxy will affect _future_ instances of that class, but it won't spontaneously alter the look of an object that is _currently visible_ in the interface. The look of an existing object will be changed, however, if that object is refreshed somehow." I suspect (as the book goes on to say) that using UIAppearance to change the look of an existing widget is a misuse. You want to change the way an existing widget looks, just change it. 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

  • Prev by Date: Re: How to use AEKeyword for sending mail from the application?
  • Next by Date: Re: AVAssetWriterInputPixelBufferAdaptor on IOS attempting to write images to a video
  • Previous by thread: UINavigationBar appearance not updating
  • Next by thread: Question about hebrew in textfields and textviews
  • Index(es):
    • Date
    • Thread