I have textboxes
. When i click on it, the Keyboard pops out. but, since the uitextfield
is located some where below, it gets covered when the keyboard pops out. (The keyboard gets displayed above the text field, so the user is unable to see it).
I need a way to move the textfield
up so that the user can see it. The iPhone facebook
app has a workaround, they shrink the UIComponents
on the view to display the textfield
on top, so it doesn't cover from the keyboard.
Can someone point me to a tutorial or sample code to start with?
If the keyboard is going to appear, we use the keyboard height + 20 (the bottom constraint).
An object that displays an editable text area in your interface.
A text field is a rectangular area in which people enter or edit small, specific pieces of text.
OPTION-1: You can refer to this code which has been accepted as answer in this following link:
How to make a UITextField move up when keyboard is present?
This will surely help you and give you your required solution.
OPTION-2: Also here is an ready made TUTORIAL:
http://www.edumobile.org/iphone/iphone-programming-tutorials/scrollview-example-in-iphone/
I think you would be surely helped by this one
OPTION-3: You can refer to this:
http://www.iphonesampleapps.com/2009/12/adjust-uitextfield-hidden-behind-keyboard-with-uiscrollview/
OPTION-4: Apple Documentation:
https://developer.apple.com/library/ios/#DOCUMENTATION/StringsTextFonts/Conceptual/TextAndWebiPhoneOS/KeyboardManagement/KeyboardManagement.html
Hope this helps you.
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With