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

View Single Post
Old 10-10-2008, 02:16 PM   #2 (permalink)
rames44
Mobile Geek
 
Join Date: Aug 2008
Location: Florida, USA
Posts: 365
rames44 is on a distinguished road
Send a message via AIM to rames44 Send a message via Yahoo to rames44
Default

I ran into the same issue in an application I'm working on, and never found a good solution. I could get parts of the cell to paint the background color, but not all of it. I then took a different approach, so I didn't pursue it.

One possibility I didn't try, but might work for you - you could conceivably create a custom view that covers the entire table cell, install it into the cell, and have it opaque with your desired color, then, handle the positioning of images/text/whatever yourself as subviews of your custom view. That would be a little simpler than subclassing UITableViewCell, I suspect.

At worst, you might have to subclass UITableViewCell in order to be able to override layoutSubviews so that you can make sure your view exactly matches the size of the UITableViewCell...
rames44 is offline   Reply With Quote
 

» Advertisements
» Online Users: 364
17 members and 347 guests
Abimennicks, asleylq98, baileetom113, Domele, drupii, flamingliquid, HemiMG, hrushikeshaddon, ipodphone, kirstenricks, krisk, lancetusing, nguyenhieu129, smartbot, thephotographer, TomTool, vbovio
Most users ever online was 1,387, 04-10-2012 at 04:21 AM.
» Stats
Members: 175,575
Threads: 94,081
Posts: 402,751
Top Poster: BrianSlick (7,990)
Welcome to our newest member, asleylq98
Powered by vBadvanced CMPS v3.1.0

All times are GMT -5. The time now is 11:56 PM.
Powered by vBulletin® Version 3.8.0
Copyright ©2000 - 2012, Jelsoft Enterprises Ltd.