This is my first time that write something at this website,Thanks; This code is for the man who wants to find the UISegmentedControl witch has Underlines and Animations; No more to say,let's begin;
LjjUIsegumentView* ljjuisement=[[LjjUIsegumentView alloc]initWithFrame:CGRectMake(0, 0, [UIScreen mainScreen].bounds.size.width, self.view.frame.size.height)];
NSArray* ljjarray=[NSArray arrayWithObjects:@"未领餐",@"待付款",@"已领餐",@"退款",nil];
[ljjuisement AddSegumentArray:fuckarray];
About ljjarray:You can add any object whose type is "NSString",it is like the segmentTitle of UISegmentedControl;
ljjuisement.LJBackGroundColor=[UIColor BlackColor];
ljjuisement.titleColor=[UIColor BlackColor];
ljjuisement.selectColor=[UIColor BlackColor];
ljjuisement.titleFont=[UIFont fontWithName:@".Helvetica Neue Interface" size:14.0f];
[ljjuisement selectTheSegument:1];
-(void)uisegumentSelectionChange:(NSInteger)selection;
Thats All,Thanks