Without using attributed text, this works perfectly:
theLabel.text = "Here\'s the text" theLabel.adjustsFontSizeToFitWidth = true theLabel.