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 09-11-2010, 07:01 PM   #1 (permalink)
Registered Member
 
Join Date: Aug 2009
Posts: 51
Dan the Man is on a distinguished road
Send a message via Yahoo to Dan the Man Send a message via Skype™ to Dan the Man
Default move cell.textLabel and cell.detailedText to the right

Hi,

How can I move the
Code:
cell.textLabel
and
Code:
cell.detailedText
a little bit to the right, so that I can put a custom label in the left.

BTW: I Don't want to create custom labels for these because I tried it and when I select it, it won't change the color to white (it stays black and looks horrible).

Thanks in advance.
Dan the Man is offline   Reply With Quote
Old 09-11-2010, 07:04 PM   #2 (permalink)
Registered Member
 
Join Date: Sep 2010
Posts: 26
jhockman is on a distinguished road
Default

Maybe someone knows better than I do, but as far as I can tell those properties are read-only when setting the cell up with a style. The only way around it that I know of is by creating a custom view which is something you state you don't want to do.
jhockman is offline   Reply With Quote
Old 09-11-2010, 08:32 PM   #3 (permalink)
Registered Member
 
Join Date: Aug 2009
Posts: 51
Dan the Man is on a distinguished road
Send a message via Yahoo to Dan the Man Send a message via Skype™ to Dan the Man
Default

ok, then is there a way how I can completely make it look like the UITableViewCellStyleSubtitle with the selection white color changing thing?
Dan the Man is offline   Reply With Quote
Old 09-11-2010, 09:31 PM   #4 (permalink)
Registered Member
 
Join Date: Sep 2010
Posts: 26
jhockman is on a distinguished road
Default

What exactly do you mean by that? By default it's white but then turns blue when selected isn't it?
jhockman is offline   Reply With Quote
Old 09-11-2010, 09:42 PM   #5 (permalink)
Emphasizing Fundamentals
 
BrianSlick's Avatar
 
Join Date: Jul 2009
Location: NoVA / DC Area
Age: 36
Posts: 7,990
BrianSlick has a spectacular aura about
Default

Quote:
Originally Posted by Dan the Man View Post
BTW: I Don't want to create custom labels for these because I tried it and when I select it, it won't change the color to white (it stays black and looks horrible).
UILabel:

Quote:
highlightedTextColor
The highlight color applied to the label’s text.

@property(nonatomic, retain) UIColor *highlightedTextColor
Discussion
... This color is applied to the label automatically whenever the highlighted property is set to YES.

The default value of this property is nil .
__________________
BriTer Ideas LLC - Professional iOS App Development. Available for hire.

SlickShopper 2 | Free NSLog utility | Leave a PayPal donation.

Are you a newbie? Things you should read:
Definitive Guide To Properties | UITableView Series | Guide To Troubleshooting | Model Object Overview

Do you sit at a desk all day? Walk instead! Follow along with my treadmill desk adventures.
BrianSlick is offline   Reply With Quote
Old 09-12-2010, 12:20 AM   #6 (permalink)
Beast Mode
 
Join Date: Dec 2008
Age: 21
Posts: 1,971
Bertrand21 is on a distinguished road
Default

Why don't you make a custom Cell. It's easier than you think.
__________________
Haters gonna Hate
Likers gonna Like
Bertrand21 is offline   Reply With Quote
Old 09-12-2010, 10:26 AM   #7 (permalink)
N3RD
 
Join Date: Oct 2009
Posts: 201
tychop is on a distinguished road
Default

Just subClass the UITAbleViewCell & use the layoutSubViews method in there to give them new coords (frame).
tychop is offline   Reply With Quote
Old 09-12-2010, 05:47 PM   #8 (permalink)
Registered Member
 
Join Date: Aug 2009
Posts: 51
Dan the Man is on a distinguished road
Send a message via Yahoo to Dan the Man Send a message via Skype™ to Dan the Man
Default

ok thanks i got it figured out. I used a custom UITableViewCell with UILabel highlights.

Last edited by Dan the Man; 09-12-2010 at 05:52 PM.
Dan the Man is offline   Reply With Quote
Reply

Bookmarks

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: 339
12 members and 327 guests
bignoggins, cgokey, givensur, hzwegjxg, iGamesDev, jenniead38, linkmx, mraalex, PixelInteractive, raihan.zbr, Trickphotostudios
Most users ever online was 1,387, 04-10-2012 at 04:21 AM.
» Stats
Members: 175,657
Threads: 94,116
Posts: 402,889
Top Poster: BrianSlick (7,990)
Welcome to our newest member, jenniead38
Powered by vBadvanced CMPS v3.1.0

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