I have a custom UITableViewCell called CCLineupTableViewCell that looks like this:
@IBOutlet weak var artistNameLabel: UILabel! @IBOutlet weak var artistValuationLabel: UILabel! override func awakeFromNib() { super.awakeFromNib()
I refer to the cell in the cellForRowAt indexPath: IndexPath as follows:
let cell = tableView.dequeueReusableCell(withIdentifier: "HomeCell", for: indexPath) as! CCLineupTableViewCell
My custom cell setup looks like this:


As you can see, it is correctly configured in IB and in code. It is strange that the first label artistNameLabel is accessible through cellForRowAt indexPath: IndexPath and works fine. artistValuationLabel , however, does not even appear, despite the fact that the default text is used in the storyboard.
Edit:
I added a constraint image from nib. It is tied to the right side, the top and bottom of the cell (as well as the format).

source share