// 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搞起
。。。。。