![](/img/trans.png)
[英]How to adjust position of textLabel, detailTextLabel and switch in tableview?
[英]How to change textLabel so it doesnt overlap the detailtextlabel on table view
圖像: http : //postimage.org/image/35y3ji58k
可以看到問題,其中大多數顯示正常,但名稱繼續與詳細標題重疊。
我希望textlabel具有“ ...”之類的明細標簽和明細標簽始終顯示。
所以基本切換格式。
有任何想法嗎?
謝謝!
您應該將UITableViewCell
子類化,並創建自己的CustomUITableViewCell
,然后為self.textLabel
設置CustomUITableViewCell
框架大小。
那應該解決問題。
聲明:本站的技術帖子網頁,遵循CC BY-SA 4.0協議,如果您需要轉載,請注明本站網址或者原文地址。任何問題請咨詢:yoyou2525@163.com.