segmentedControl设置字体和字体颜色问题

NSDictionary *dic = [NSDictionary dictionaryWithObjectsAndKeys:[UIColor blackColor],UITextAttributeTextColor,[UIFont fontWithName:@"AppleGothic"size:14],UITextAttributeFont ,nil];

    //设置各种状态的字体和颜色
    [self.segmentedControl setTitleTextAttributes:dic forState:UIControlStateNormal];
posted @ 2015-07-17 17:27  云端止水  阅读(504)  评论(0编辑  收藏  举报