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

Interface 2, Advanced iOS
Mockup & Code Gen
($9.99)

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

Pic Frame Dynamo: Photo Editing
($0.99)

Abiliator
($1.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 02-25-2010, 06:54 PM   #1 (permalink)
fvc
Registered Member
 
Join Date: Feb 2010
Posts: 7
fvc is on a distinguished road
Default UITableViewController bg color reset after adding to Tab Bar

Previously, I loaded my UITableViewController upon loading the application at start. I customized the color of the text, separator, bg color, etc and it all worked fine.

When I modified the delegate to add this view to a tab bar, the background color comes up as the default white. All of my other settings though (like white text, blue highlight on click) are sticking (so I have white text on a white bg).

The set background color code is in viewDidLoad and I just tried viewDidAppear, any ideas?
fvc is offline   Reply With Quote
Old 02-25-2010, 07:31 PM   #2 (permalink)
Registered Member
 
Join Date: Apr 2009
Posts: 74
xyster is on a distinguished road
Default

Are you sure the background color opacity of your tableview/table cells is not 0?
xyster is offline   Reply With Quote
Old 02-25-2010, 07:34 PM   #3 (permalink)
fvc
Registered Member
 
Join Date: Feb 2010
Posts: 7
fvc is on a distinguished road
Default

I will check this thanks, I'm also noticing that I never set any cell background color, just highlight color, text color, etc.

What is the proper cell background color property?
fvc is offline   Reply With Quote
Old 02-25-2010, 07:47 PM   #4 (permalink)
fvc
Registered Member
 
Join Date: Feb 2010
Posts: 7
fvc is on a distinguished road
Default

Ok so the alpha is 1, so that shouldn't be an issue.

To be more specific, the backgroundColor I was setting was the UITableView in viewDidLoad or viewDidAppear. And now that I look more closely, none of these settings (separatorColor, etc) took place. Other code such as navbar title in this method did get executed however.

When I click a cell though, it does apply the highlight cell color I have in the configure cell method.
fvc is offline   Reply With Quote
Reply

Bookmarks

Tags
background color, tabbarcontroller, tableviewcontroller

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: 347
9 members and 338 guests
2Apps1Day, akacaj, c2matrix, esoteric, givensur, mjnafjke, Pudding, SLIC, Techgirl-52
Most users ever online was 1,387, 04-10-2012 at 04:21 AM.
» Stats
Members: 175,650
Threads: 94,115
Posts: 402,887
Top Poster: BrianSlick (7,990)
Welcome to our newest member, soohyun
Powered by vBadvanced CMPS v3.1.0

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