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

View Single Post
Old 07-06-2009, 04:19 PM   #4 (permalink)
deansx
Objective-C Code Monkey
 
deansx's Avatar
 
Join Date: May 2009
Location: Mountain View, CA
Posts: 127
Default

Quote:
It worked great. May I ask you. How do you know this ... where did you get this information from. Thank you.
I'm glad that it worked. I first encountered the issue when we were testing 3.0. I even included a related fix in a blog post that I wrote about how we were supporting both 2.2 and 3.0 with the same codebase (that's where I copied the code snippet that I sent you from).

The background information is in the Apple UITableViewCell Class Reference documentation. If you mouse over the listing for "textAlignment" in the "Tasks/Managing Text as Cell Content" section (towards the top of the document), you'll get a popup that tells you that the property is deprecated in 3.0, and advising you to adopt the solution described above.

Further down in the document, where the textAlignment property is actually documented, we see: (emphasis mine)
Quote:
textAlignment
A constant that specifies the alignment of text in the cell. (Deprecated. Instead set the text alignment of the UILabel objects assigned to the textLabel and detailTextLabel properties.)

@property(nonatomic) UITextAlignment textAlignment
Discussion
If the value of the property is nil (the default), the title is left-aligned (UITextAlignmentLeft). See the descriptions of the UITextAlignment constants for alternative text alignments.

Availability
Available in iPhone OS 2.0 and later.
Deprecated in iPhone OS 3.0.
Related Sample Code
Reachability
Declared In
UITableViewCell.h
deansx is offline   Reply With Quote
 

» Advertisements
» Stats
Members: 158,732
Threads: 89,189
Posts: 380,525
Top Poster: BrianSlick (7,128)
Welcome to our newest member, sandihf
Powered by vBadvanced CMPS v3.1.0

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