hi, 
i'm using a UIPicker, it has 2 component and i'm having problem adding the 2 values from the component together.
my codes are here:
	
	
	
		
and i have to displayed the result out on to my label called testlabel.
	
		
			
		
		
	
				
			i'm using a UIPicker, it has 2 component and i'm having problem adding the 2 values from the component together.
my codes are here:
		Code:
	
	- (void)pickerView:(UIPickerView *)pickerView didSelectRow:(NSInteger)row inComponent:(NSInteger)component
{
	for (int i =0; i <2; i++)
	{
		
		double tenth = [arrayNo objectAtIndex:[pickerView selectedRowInComponent:0]];   
	
	}
		double oneth = [array2 objectAtIndex:[pickerView selectedRowInComponent:1]];
	
	double result = [ double oneth + (double tenth * 10) ]; 
	
}
			
				Last edited by a moderator: 
			
		
	
										
										
								
								
											
	
		
			
		
		
	
	
	
		
			
		
		
	
										
									
								 
 
		 
 
		