iOS7에서 내 세그먼트 컨트롤의 테두리 색을 변경하는 데 문제가 있습니다. stackoverflow 다른 곳에서 다음 제안을 발견했습니다 :uisegmentedcontrol의 테두리 색
[[UISegmentedControl appearance] setTitleTextAttributes:@{
UITextAttributeTextColor: [UIColor colorWithRed:255.0/255.0 green:255.0/255.0 blue:255.0/255.0 alpha:1.0],
UITextAttributeTextShadowColor: [UIColor colorWithRed:0.0 green:0.0 blue:0.0 alpha:0],
UITextAttributeFont: [UIFont fontWithName:@"Arial-Bold" size:0.0],
NSForegroundColorAttributeName : [UIColor redColor],
} forState:UIControlStateSelected];
[self.segmentedControl setTitleTextAttributes:@{
UITextAttributeTextColor: [UIColor colorWithRed:255.0/255.0 green:255.0/255.0 blue:255.0/255.0 alpha:1.0],
UITextAttributeTextShadowColor: [UIColor colorWithRed:0.0 green:0.0 blue:0.0 alpha:0],
UITextAttributeFont: [UIFont fontWithName:@"Arial-Bold" size:0.0],
NSForegroundColorAttributeName : [UIColor redColor],
} forState:UIControlStateNormal];
두 경우 모두 내 테두리는 여전히 파란색입니다. settitleTextAttributes를 통해 글꼴 그림자, 테두리 색 또는 다른 것을 변경할 수 없습니다.
테두리 색은 어떻게 조정합니까?