Hey guys! So I was hoping someone could help me with this little programming issue I've been having. Basically I'm developing an iPhone app to convert various base numbers between one another (binary to octal, for example). I have it set up with multiple text fields, with each field representing a different base system. The user can input into any of these text fields, and the input's converted value will be reflected to the appropriate other text field (for example, if the user typed in 101 in the binary field, the octal field would read 5. Everything works fine, until I get into higher numbers. See, I have it set up so the numbers will convert live as the user types, and due to the heavy amount of string manipulation I have going, it begins to slow the app down as the input number gets longer. And as a result, the keyboard input becomes laggy - especially on older devices - freezing up during the execution of the number conversion code, then becoming fully responsive.
This is kind of an issue, as if a user inputs a large number, it could take a very long time for them to input the whole thing, between typing and waiting for the keyboard to become responsive. Therefore, I wanted to know if there is any way around this? Maybe something which would give priority to the keyboard above everything else? I saw this other app that converts length values in the same UI way that mine does, though in this app, when the numbers get large, the updating of the text fields does slow down, but the keyboard input never gets laggy! It's as if the keyboard is living in its own world, unaffected by whatever other logic is going on in the background.
Please, if anyone knows anything about this, please give me a hand. As always, any help is always appreciated!
This is kind of an issue, as if a user inputs a large number, it could take a very long time for them to input the whole thing, between typing and waiting for the keyboard to become responsive. Therefore, I wanted to know if there is any way around this? Maybe something which would give priority to the keyboard above everything else? I saw this other app that converts length values in the same UI way that mine does, though in this app, when the numbers get large, the updating of the text fields does slow down, but the keyboard input never gets laggy! It's as if the keyboard is living in its own world, unaffected by whatever other logic is going on in the background.
Please, if anyone knows anything about this, please give me a hand. As always, any help is always appreciated!