首页 > 其他 > 详细

OneDayOneClass----UISwitch

时间:2015-04-14 23:20:54      阅读:302      评论:0      收藏:0      [点我收藏+]

// Created By 郭仔  2015年04月14日22:12:47

UISwitch 开关按钮类:


 
    UISwitch *switchView = [[UISwitch alloc]initWithFrame:CGRectMake(54.0f, 16.0f, 100.0f, 28.0f)];
    switchView.on = YES;
    [switchView addTarget:self action:@selector(switchAction:) forControlEvents:UIControlEventValueChanged];
    switchView.backgroundColor = [UIColor orangeColor];
    switchView.tintColor = [UIColor redColor];
    switchView.thumbTintColor = [UIColor blackColor];
    [self.window addSubview:switchView];
    [switchView release];
其他功能API搞起技术分享。。。。。


OneDayOneClass----UISwitch

原文:http://blog.csdn.net/guoxianzhuang/article/details/45048783

(0)
(0)
   
举报
评论 一句话评论(0
关于我们 - 联系我们 - 留言反馈 - 联系我们:wmxa8@hotmail.com
© 2014 bubuko.com 版权所有
打开技术之扣,分享程序人生!