ios - Calculator that displays entire equation -
In my application, I have created a number pad in which operators such as User input by adding track operation to an NSArray If the user taps the '+' button, Add to the array of "+", if they "-" tap, then add a @ "" to the array. From here you can generate an integrated NSSSring of all the works to generate the equation. In addition to this, as the operation is stored in NSARR, if the user clears the delete button, then instead of simply comparing and manipulating the string to remove the last string and operation from the array Recombines the equation. +
-
x
/ . All I want to know is that they have to be displayed in a label when the user inputs them. For example, if the user wants to know 3 + 5, then the user will press the button for each and the label will show 3 + 5 and then count the user The side will push and the answer will be displayed in the second label. So basically how can I display all this in a label together? I'm trying to do it in a different way but it only gives me a headache.
Comments
Post a Comment