Ocorreu um problema no título do UIButton de alinhamento à esquerda (iOS / Swift)

Estou com um problema de alinhar à esquerdaUIButtontexto de Eu também tentei mudar para.Right mas ainda permanece centrado. Eu também tenteiaButton.imageEdgeInsets = UIEdgeInsets(top: 0, left: 20, bottom: 0, right: 0) ao invés deaButton.titleLabel?.textAlignment = .Left mas isso também não muda nada. Existe uma maneira alternativa de alterar programaticamente o alinhamento de umUIButton título?

        allButtonViews = UIView(frame: CGRectMake(0, 44, 100, 100))
        allButtonViews.backgroundColor = .redColor()

        let campusButton = UIButton(type: UIButtonType.System) as UIButton
        aButton.frame = CGRectMake(0, 0, 300, 70)
        aButton.setTitle("A", forState: .Normal)
        aButton.titleLabel?.textColor = .blueColor()
        aButton.titleLabel?.textAlignment = .Left
        aButton.backgroundColor = .whiteColor()

        sortView.addSubview(aButton)
        view.addSubview(allButtonViews)

questionAnswers(3)

yourAnswerToTheQuestion