UISegmentedControl*seg=[[UISegmentedControl alloc]initWithItems:[NSArray arrayWithObjects:@"11",@"22",@"33", nil]];
seg.frame=CGRectMake(20, 100, 280, 40);
NSDictionary *dic = [NSDictionary dictionaryWithObjectsAndKeys:[UIColor redColor],NSForegroundColorAttributeName,[UIFont systemFontOfSize:28],NSFontAttributeName ,nil];
[seg setTitleTextAttributes:dic forState:UIControlStateNormal];
seg.frame=CGRectMake(20, 100, 280, 40);
NSDictionary *dic = [NSDictionary dictionaryWithObjectsAndKeys:[UIColor redColor],NSForegroundColorAttributeName,[UIFont systemFontOfSize:28],NSFontAttributeName ,nil];
[seg setTitleTextAttributes:dic forState:UIControlStateNormal];