UISwitch
Creating a switch
CGRect frame = CGRectMake(0.0, 0.0, 60.0, 26.0);
UISwitch *switchControl = [[UISwitch alloc] initWithFrame:frame];
//[switchControl addTarget:self action:@selector(action:)forControlEvents:UIControlEventTouchUpInside];
[switchControl setBackgroundColor:[UIColor clearColor]];
[self.view addSubview:switchControl];
CGRect frame = CGRectMake(0.0, 0.0, 60.0, 26.0);
UISwitch *switchControl = [[UISwitch alloc] initWithFrame:frame];
//[switchControl addTarget:self action:@selector(action:)forControlEvents:UIControlEventTouchUpInside];
[switchControl setBackgroundColor:[UIColor clearColor]];
[self.view addSubview:switchControl];
Comments
Post a Comment