Is there any way to have two keyboards on the screen at once? I have an app that two people can use at the same time: one part of the app takes one half of the screen and the other part takes the other half and is flipped. It will have text fields, and it would be a flaw for only one person to be able to use it at a time. Is it possible to do this?
If not, would I have to make my own keyb开发者_高级运维oard? That's fine, but I have one question: how exactly do you add a character to the end of a NSString?
Is any of this against guidelines? Thanks for your help!
Yes, I think you will have to add your own keyboard. There are companies that sell libraries that implement custom keyboards. Getting it flipped is a problem; if you have the source to the keyboard library, you can use Affine Transforms to flip it upside down.
You can't add anything to an existing NSString as NSString is immutable. Your two choices are to use an NSMutableString or to create a totally new string out of your existing string and a string containing the one character that you want to add.
I'm pretty sure it's not possible.
As for adding a char to the end of the string, it's as easy as using an NSMutableString and do [mutableString appendString:anotherString];
精彩评论