I have a UITextField in my app that I want users to be able to enter equations into. These equations can vary from something as simple as 2+2 to something as crazy as (((4^2) + (6^3)) / 2) * (100 - 14) but no matter how it's formatted, it should always work.

The equation needs to follow order of operations, as well as return the right answer. Any ideas?

Related posts

Recent Viewed