4

I realize there are a lot of questions like this already, but read on please, this one is most likely different.

So I have been working on a calculator app, and I would like the user to be able to press a button and be provided with the layout for a mathematical function (square, sqrt, log, etc.). This is a little hard to explain, so here is a screenshot of what I need, directly from Apple's grapher app:

example

See, the user can press one of these, and it will be inserted into the text field directly, and the user can then edit any attributes.

I would like to accomplish this while still being able to use a UITextField, so really, any suggestions or recommendations would be much appreciated, I just can't solve this.

Bista
  • 7,869
  • 3
  • 27
  • 55
App Face
  • 81
  • 5
  • What about adding an images overlay which is touchable for each element and calculating where to place it on the textfield, whilst storing the intended calculation? – AMAN77 Oct 15 '16 at 06:24
  • You might have to look into UITextView and NSTextAttachment. This http://stackoverflow.com/questions/20930462/ios-7-textkit-how-to-insert-images-inline-with-text might help – Naveen Ramanathan Oct 15 '16 at 06:32
  • @NaveenRamanathan, maybe. That might be what I'm looking for, I will look more into it! – App Face Oct 15 '16 at 07:01

0 Answers0