powellcj12/RPNCalculator — Issue #1: Backspace Doesn't Fully Clear Display Result
Author: powellcj12
Created: 2012-02-22 06:38:15+00:00
State: open

When the display shows the result of a calculation, the backspace button will remove all but a single digit from it. The history is okay because the result is not displayed there. The problem has to do with the fact that I'm checking how to back up based on whether or not the user has already typed something:

```objective-c
//user pressed something other than 0 first
if(self.display.text.length == 1 && self.userIsInTheMiddleOfEnteringANumber)
{
self.display.text = @"0";
self.userIsInTheMiddleOfEnteringANumber = NO;
}
//user has pressed a bunch of stuff
else if(self.display.text.length > 1)
self.display.text = [self.display.text substringToIndex:(self.display.text.length - 1)];
```

I might have to check using something else.