slackhq/SlackTextViewController

Support for setting the left button's title

Open

#457 建立於 2016年5月5日

在 GitHub 查看
 (1 留言) (0 反應) (0 負責人)Objective-C (1,071 fork)batch import
help wantednew feature

倉庫指標

Star
 (8,261 star)
PR 合併指標
 (30 天內沒有已合併 PR)

描述

Hi,

I hesitated creating an issue for this, but couldn't find any resource online. In swift, I can only have a leftButton with an UIImage, but I can't have one with text instead.

For instance:

// works
self.leftButton.setImage(UIImage(named: "icn_upload"), forState: .Normal)
//works
self.rightButton.setTitle(NSLocalizedString("Send", comment: ""), forState: .Normal)
// does not work
self.leftButton.setTitle(NSLocalizedString("Test", comment: ""), forState: .Normal)

Is there a way to put text in the leftButton instead of an image ? Sorry if this question already has an obvious answer.

貢獻者指南