On Wed, 11 Apr 2012 22:24:45 +0800, Roland King <r...@rols.org> 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 = m...@tidbits.com, <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 (Cocoa-dev@lists.apple.com) 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: https://lists.apple.com/mailman/options/cocoa-dev/archive%40mail-archive.com This email sent to arch...@mail-archive.com