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
|