我需要在我的UITableView
中設置三行detailTextLabel
。UITableView的textLabel.text位置不在iOS中心
所以我設置下面的代碼在我CellForRowAtIndexPath
cell.detailTextLabel.numberOfLines = 3;
cell.detailTextLabel.textAlignment = NSTextAlignmentCenter;
之後我設置的是,我的cell.TextLabel.text位置正在發生的事情就像下面照片。
我想這cell.textLabel.
文本中心,而不是在頂部。
我該怎麼做?