Monday, 15 February 2010

cocoa touch - How to place another TextLabel in UITableViewCell's right side in iOS -


I want to put another cell text on the right side of UITableViewCell in iOS such as the following picture < / P>

Enter image details here

How can I do this ?

Thanks for any help.

UITableViewCell has a property, detailTextLabel , which you can inquire about Just specify the text that labels match the text label

ie.

  cell.textLabel.text = @ "Google"; Cell.detailTextLabel.text = @ "tomorrow";   

Small "arrows", in addition, is a helpful view on the cell

  cell.accessoryType = UITableViewCellAccessoryDisclosureIndicator;    

No comments:

Post a Comment