ios - UITableViewCell detailTextLabel white space
问题描述
I have a custom accessory arrow in my UITableViewCell:
cell.accessoryView = UIImageView(image: UIImage(named: "arrow_settings"))
After this I set detailTextLabel this way:
cell.detailTextLabel?.text = settings.detailText + " "
I add white space to give some space between detailTextLabel and the accessory but the white spaces are ignored at runtime! What do I do to give a gap between accessory view and detail text label?
解决方案
推荐阅读
- r - R Markdown code chunk does not show math equations
- vba - Word 中的 VBA 宏用于选择和分组图像,并在其顶部带有突出显示框(形状)
- javascript - 创建一个 NEXT 和 PREVIOUS 来显示 JSON 数据的记录
- javascript - 从 JS 获取图像数组到 Django 模板
- algorithm - 给定一个比较列表,用尽可能少的额外比较对项目进行排序
- javascript - 使用颤振客户端向 node.js express api 发出 post 请求
- c - 在 C 中为未知长度的字符串实现 BST 的最佳实践是什么?
- task - 任务计划程序无法运行应用程序
- javascript - Google Apps 脚本 - 自动链接工作表
- tensorflow - Tensorflow“条件[1,20,1],然后[10,1,10,1],否则[10,20,1]必须是可广播的”