Skip to content

Instantly share code, notes, and snippets.

@pingzh
Last active June 3, 2016 05:00
Show Gist options
  • Save pingzh/4571713f6c0872224319 to your computer and use it in GitHub Desktop.
Save pingzh/4571713f6c0872224319 to your computer and use it in GitHub Desktop.
var followingNumer: UIButton {
if _followingNumer == nil {
_followingNumer = UIButton()
_followingNumer.titleLabel?.lineBreakMode = .ByWordWrapping
_followingNumer.titleLabel?.textAlignment = .Left
_followingNumer.titleLabel?.font = TprofileButtonFont
_followingNumer.setTitleColor(TprofileButtonFontColor, forState: .Normal)
_followingNumer.setTitle("222\nFollowiing", forState: .Normal)
}
return _followingNumer
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment