UIButtonの背景色(backgroundColor)の設定
self.button.backgroundColor = UIColor.blackColor()
ちなみにテキストの色の設定は
self.button.setTitleColor(UIColor.whiteColor(), forState: .Normal)
Go to list of users who liked
More than 5 years have passed since last update.
UIButtonの背景色(backgroundColor)の設定
self.button.backgroundColor = UIColor.blackColor()
ちなみにテキストの色の設定は
self.button.setTitleColor(UIColor.whiteColor(), forState: .Normal)
Register as a new user and use Qiita more conveniently
Go to list of users who liked