1

如何在每个段中创建具有不同字体的 UISegmentedControl?我知道我可以使用setTitleTextAttributes: forState:,但这一次为所有按钮设置了相同的字体。我正在尝试创建这样的东西: 例子

谢谢

4

1 回答 1

0

您应该使用– setTitle:forSegmentAtIndex:UISegmentedControl,并通过使用 NSString UIKit Additions 之一向他传递 NSString 的自定义绘制。

看看这个链接:http: //developer.apple.com/library/ios/#documentation/uikit/reference/NSString_UIKit_Additions/Reference/Reference.html

于 2013-01-06T22:51:49.410 回答