slackhq/SlackTextViewController

Support for setting the left button's title

Open

#457 geöffnet am 5. Mai 2016

Auf GitHub ansehen
 (1 Kommentar) (0 Reaktionen) (0 zugewiesene Personen)Objective-C (1.071 Forks)batch import
help wantednew feature

Repository-Metriken

Stars
 (8.261 Stars)
PR-Merge-Metriken
 (Keine gemergten PRs in 30 T)

Beschreibung

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.

Contributor Guide