I am just starting off with Objective-C and iphone app dev, i'm trying to design a calculator app, the logic i have used is this : when the user clicks any button i take the title of the button by [sender titleForState:UIControlStateNormal] method and then go on appending it onto a string(NSString *result). say the user enters 123+456 , then in my string i will have "123+456", now i want two strings "123" and "456" so that i can add them by [result intValue] method.
So my question is, how do i get these two separate strings ("123" & "456")?
An example code with suitable methods would be very helpful.