UIButton with two lines of text in the title (numberOfLines=2)
You don’t need to add a UILabel to the UIButton. That’s just extra objects and work. Set these properties on the titleLabel of your button. button.titleLabel.lineBreakMode = NSLineBreakByWordWrapping; button.titleLabel.numberOfLines = 2;//if you want unlimited number of lines put 0 Swift: button.titleLabel!.lineBreakMode = NSLineBreakMode.ByWordWrapping button.titleLabel!.numberOfLines = 2//if you want unlimited number of lines put 0