Usi Usi
Usi Usi

Reputation: 2997

subclassing a cell with UITableViewCellStyleSubtitle

Is it possibile to subclassing a cell with a UITableViewCellStyleSubtitle. I need to use this style but I need to move the text and description label to the left. How can I do?

Upvotes: 1

Views: 218

Answers (1)

wattson12
wattson12

Reputation: 11174

in your init method for your subclass call super initWithStyle:UITableViewCellStyleSubtitle..., the detail label will be set up for you and you can access this with the detailTextLabel property

set the position of the label(s) in layoutSubviews

Upvotes: 2

Related Questions