This my UITableViewCell
without expanding . The contents on the UITableView
are horizontally centered as the behavior of the table view .
this is my UITableViewCell
with expansion . Here contents again get centered automatically . But I want the content at the same place as in first image . anyone have idea how can it be done ?
I think the only option you have here is to create your own tableViewCell since predefined cell styles don't allow customization.
You can either place in it a custom label that allows top vertical alignment like SSLabel in the SSToolkit or add a normal UILabel to the top and prevent it from resizing its height with the cell.
The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.