SwiftでUILabelのテキストを中央寄せする方法はこちら、
myLabel.textAlignment = NSTextAlignment.Center
他にもLeftやRight、Justifiedなどを指定すればそれぞれの横揃いになります。
Go to list of users who liked
More than 5 years have passed since last update.
SwiftでUILabelのテキストを中央寄せする方法はこちら、
myLabel.textAlignment = NSTextAlignment.Center
他にもLeftやRight、Justifiedなどを指定すればそれぞれの横揃いになります。
Register as a new user and use Qiita more conveniently
Go to list of users who liked