I am developing a calculator which has a Clear button . I can clear the whole label containing the number easily but I want that it should clear digit by digit on the button click . Is this possible . How can i implement it ?
-(IBAction)cancelOperation
{
currentNumber = 0;
calculatorScreen.text = @”0.00″;
currentOperation = 0;
}
1 Answer