开发者

UITextAlignmentCenter for two liners with same number of characters, not aligned

开发者 https://www.devze.com 2023-03-14 01:39 出处:网络
I have a UILabel with text: 照明タイマーをセットする that is being cut into two lines \"照明タイマー\" and \"をセットする\", I set the lines of alignment of the UILabel to UITextAlignmentCenter, but t

I have a UILabel with text: 照明タイマーをセットする that is being cut into two lines "照明タイマー" and "をセットする", I set the lines of alignment of the UILabel to UITextAlignmentCenter, but the second line wouldn't align to center. I have also tried UILineBreakModeCharacterW开发者_StackOverflow社区rap and UILineBreakModeWordWrap, but it's still the same. Any ideas?

Thanks.


Setting it up in interface builder works fine.. have you solved it?

UITextAlignmentCenter for two liners with same number of characters, not aligned

0

精彩评论

暂无评论...
验证码 换一张
取 消