Is there any way to make a text field with keyboard (such as Twitter or Whatsapp)?
I tried to find some help from Google but I could not.
Can anyone help me with this issue or at least to direct me where I can find some info?
Is there any way to make a text field with keyboard (such as Twitter or Whatsapp)?
I tried to find some help from Google but I could not.
Can anyone help me with this issue or at least to direct me where I can find some info?
You can use the built-in UITextField
for the text, but I assume your problem is with getting the field to rise with the keyboard when the user selects it.
This is a bit of a tricky problem, but the general solution is to use a UIScrollView
and tell the keyboard to scroll when the user selects the field. This is especially important in iOS 8, which introduces custom keyboards; because third party keyboards can be any height, you can no longer hardcode the default keyboard height to scroll to.
Apple describes how to use this approach under "Moving Content That Is Located Under the Keyboard" in their "Text Programming Guide for iOS."