Advertise Mobile SDKs Books Events Forum News Social Networking Support Us
Follow @iphonedevsdk on Twitter

Mockup & CodeGen, iPhone & iPad
($9.99)

Make your own iPhone apps
and run them live!
(free)

Manu
($0.99)

Want your application or service advertised on iPhone Dev SDK?

Go Back   iPhone Dev SDK Forum > iPhone SDK Development Forums > iPhone SDK Development

Reply
 
LinkBack Thread Tools Display Modes
Old 08-03-2009, 07:54 PM   #1 (permalink)
Registered Member
 
Join Date: Oct 2008
Posts: 94
Default changing UINavigationBar barStyle changes colors of subviews

I have a UISegmentedControl as the titleView in my view controller's navigationItem property. From this view controller, I push to a second controller with a different bar style. When popping the second view controller, I revert the bar style in my first controllers -viewWillAppear: method. However, I find that the segmented controller has changed colors - it was pink at first, but after setting the bar style to black opaque, the segmented control is now black also. I don't seem to be able to set its color back until the viewDidAppear: method, which produces a somewhat jarring experience.
Does anyone know a work around?
yezaev is offline   Reply With Quote
Old 08-05-2009, 01:59 PM   #2 (permalink)
Registered Member
 
Join Date: Oct 2008
Posts: 94
Default

bump. anyone know a way around this? I've tried creating a custom navigationBar and overriding some of the private methods I found from class dump that looked like they might have an effect, but wasn't successful.
yezaev is offline   Reply With Quote
Reply

Bookmarks

Tags
uinavigationbar, uinavigationcontroller, uinavigationitem

Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On



» Advertisements
» Online Users: 278
20 members and 258 guests
ADY, Bertrand21, Dani77, HemiMG, iDifferent, IphoneSdk, jakerocheleau, JasonR, jimbo, macquitzon216, MACralik, mer10, NSeven, prchn4christ, Rudy, silverwiz, spiderguy84, Sunny46
Most users ever online was 1,187, 10-11-2011 at 08:09 AM.
» Stats
Members: 158,885
Threads: 89,230
Posts: 380,767
Top Poster: BrianSlick (7,129)
Welcome to our newest member, bookesp
Powered by vBadvanced CMPS v3.1.0

All times are GMT -5. The time now is 03:00 PM.
Powered by vBulletin® Version 3.8.0
Copyright ©2000 - 2012, Jelsoft Enterprises Ltd.
Search Engine Friendly URLs by vBSEO 3.3.0