how to display numbers without garbage numbers?
- by Medeti Naveen Kumar
Hi friends,
whenever i press the numbers in text filed upto 9 numbers my textfield has taken
right values but i press 10 th number.i have found duplicate number.
in my header file i declare a pressnumber is "long long int"
-(IBAction)press:(id)sender{
pressNumber = pressNumber*10 + (int)[sender tag];
phonenumber.text = [NSString stringWithFormat:@"%d",currentNumber];
}
i want to enter a phone number in my textfiled but it is not taken 10 right numbers.
Thanking you,