如何使我的 UISegmentedControl 中的一个按钮中的文本跨越多行?
最佳答案
使用 UIAppearance 来完成任务。下面的代码片段将起作用。在创建分割之前调用它。
objective-C
[[UILabel appearanceWhenContainedIn:[UISegmentedControl class], nil] setNumberOfLines:0];
swift
UILabel.appearanceWhenContainedInInstancesOfClasses([UISegmentedControl.self]).numberOfLines = 0
关于iphone - 多行的 UISegmentedControl 文本?,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/5614284/