首页 > 解决方案 > 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?

标签: iosuitableviewuikit

解决方案


推荐阅读