Please note, this blog entry is from a previous course. You might want to check out the current one.
When the user hits an operation button, put an = on the end of the text label that is showing what was sent to the brain (required task #4). Thus the user will be able to tell whether the number in the Calculator’s display is the result of a calculation or a number that the user has just entered.
Basically we add an equal sign in operationPressed:
self.history.text = [self.history.text stringByAppendingFormat:@" %@ =", sender.currentTitle];
Continue reading “Assignment #1 Extra Task #2”