代码库> 分段选择> 带有下划线和动画效果的uisegmentcontrol
带有下划线和动画效果的uisegmentcontrol
关注
查看次数:10419 下载次数:2320
上传时间:2015-07-01 大小:24 B


初次创建:
LjjUISegmentedControl* ljjuisement=[[LjjUISegmentedControl alloc]initWithFrame:CGRectMake(0, 0, [UIScreen mainScreen].bounds.size.width, self.view.frame.size.height)];
NSArray* ljjarray=[NSArray arrayWithObjects:@"未领餐",@"待付款",@"已领餐",@"退款",nil];
[ljjuisement AddSegumentArray:ljjarray];
About ljjarray:You can add any object whose type is "NSString",it is like the segmentTitle of UISegmentedControl;


Change the background color
ljjuisement.LJBackGroundColor=[UIColor BlackColor];


Change Title color
ljjuisement.titleColor=[UIColor BlackColor];


Change the Color of selectionButton
ljjuisement.selectColor=[UIColor BlackColor];


Change the buttonTitle Font
ljjuisement.titleFont=[UIFont fontWithName:@".Helvetica Neue Interface" size:14.0f];


Select the Button
[ljjuisement selectTheSegument:1];


protocol
-(void)uisegumentSelectionChange:(NSInteger)selection;


收藏
我来说两句
发表评论
您还没有登录!请登录注册
所有评论(0
本周热门下载
综合评论
提示
sina weixin mail 回到顶部