-(void)textFieldDidEndEditing:(UITextField *)textField { stp1.value=[txt1.text intValue]; stp2.value=[txt2.text intValue]; stp3.value=[txt3.text intValue]; } -(BOOL)textFieldShouldReturn:(UITextField *)textField { [textField resignFirstResponder]; return NO; } -(IBAction)stpr { red1=(int)stp1.value; txt1.text=[NSString stringWithFormat:@"%d",(int)red1]; green1=(int)stp2.value; txt2.text=[NSString stringWithFormat:@"%d",(int)green1]; blue1=(int)stp3.value; txt3.text=[NSString stringWithFormat:@"%d",(int)blue1]; } -(IBAction)btnPressed { view1.backgroundColor=[UIColor colorWithRed:red1/255 green:green1/255 blue:blue1/255 alpha:1.0]; }
var
This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)