//for creation of UISwitch,, for (int i=1; i<=self.slider.value; i++) { self.switch1=[[UISwitch alloc]initWithFrame:CGRectMake(x, y, 0, 0)]; [self.resultTextView addSubview:self.switch1]; x+=50; if (x>=280) { x=10; y+=35; } } // for creation of UILabel for (int i=1; i<=self.slider.value; i++) { self.label1=[[UILabel alloc]initWithFrame:CGRectMake(x, y, 25, 25)]; self.label1.text=[NSString stringWithFormat:@"%d",i]; [self.resultTextView addSubview:self.label1]; x+=30; if (x>=280) { x=10; y+=30; } }
var
This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)