how to display numbers without garbage numbers?
Posted
by
Medeti Naveen Kumar
on Stack Overflow
See other posts from Stack Overflow
or by Medeti Naveen Kumar
Published on 2012-04-02T05:27:23Z
Indexed on
2012/04/02
5:28 UTC
Read the original article
Hit count: 214
iphone
|objective-c
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,
© Stack Overflow or respective owner