This seems so dumb, but I checked all the boxes that I have found as "solutions" to similar problems but nothing is quite working. I have a UITextView box that I want to be scrollable, and my settings are below. Anyone know why it isn't letting me scroll?
Please also make sure that User Interaction Enabled is checked in .xib file
I also had a problem with an unscrollable UITextView, but the other answers here didn't help (granted it was a special case: I only needed to scroll when the app was viewed horizontally).
Just in case anyone has a similar problem and lands here: what did help me was to activate vertical Autosizing (Size Inspector under View) for the textview.
Make sure you have text in your UITextView
Check to see if the UITextView is enabled (there's a property in settings) - it should be enabled.
Make sure you don't change these settings (or the "Scrolling Enabled" property) in your code.
Good luck !
you have to actually have texts inside the textview that overlap it original frame height to make it scrollable
Related
I am encountering a problem that I'm not sure how to solve. If you look at the screenshot below, you'll see that the UI is laid out so that it neatly fits into the space between the safe area layout guide's top anchor and the top of the keyboard.
The keyboard will ALWAYS be shown in this view controller. But I need a way of knowing what the height of the keyboard is so that I can do some math to figure out how to tall to make the UITextView (the red box).
I tried the approach of registering for notifications on when the keyboard will show, but that is too late.
I need a way of knowing the height of the keyboard before the view renders so that I can configure the height of each of the elements in the UI.
Is there a way to do this?
Thank you!
One option would be to capture the dimensions of the Keyboard when it IS presented then pass those dimensions into this view.
However, you will also want to make sure that you are handling cases such as the split keyboard on an iPad and things of that nature.
For that you might choose to look at the documentation on using the keyboardLayoutGuide and use it with some constraints.
https://developer.apple.com/documentation/uikit/keyboards_and_input/adjusting_your_layout_with_keyboard_layout_guide
A beginners question: I've added a Text Field to my application. In IB it looks fine, having its size set to 100 x 30. However when running the app on simulator, the Text Field covers the entire screen. How do I fix that?
I think you have to check your file owner's connection with that textfield may be by mistek you have done connection from file owner's to textfied as view so remove thatone.
Checkout Utility view on the right side
Go to first tab
Uncheck Use Autolayout
Go to forth tab
Check Autoresize subviews
Following these steps may solve your problem
Enjoy Programming!!
Check Property for Text field for 'AutoSizing'
Hope, it'll help you.
Thanks.
I have Struggled with the following issue..
I need an Activity Which have an editbox and a chekbox below it..These are placed at the bottom of the screen...I have a background image for this total screen..I need scrolling of the totalview(background image along with edit and check boxes) while with presence of softkeyboard...
At start It was looks good..But at the time of editing the image is Resize(shrink)/the image is overlapped by the edit & check boxes with adjustResize in manifest option...with adjustPan I could get something of requirement but the check box was still behind the Keyboard...I much tried with Scrollviews and include layout options but couldn't get the required....
Could anyone Suggest me anything regarding this..
At last I found some trick to get out of this....what I did was instead of using scrollviews...etc...just I scroll the Parent layout (ScrollTo(x,y)) to some extent upwards...Which works fine with me...
I have a UITextView and I need to show the autocorrection words suggested by apple at the top. Right now they are coming at the bottom and are hiding behind the editor.
I am facing with the same problem that you are talking about. The truth is that we can't play with the position of auto-correction bubble.
Few things to try to see the behaviour of auto-correction bubble :
* try setScrollEnabled to NO, you will notice that it automatically comes at top.
* with the above setting (scrollEnabled= NO) , it depends upon the frame.origin.y , whether it comes on top, or bottom.
I have also posted a similar kind of question, to know the behaviour.
UITextView auto-complete bubble location
What i am doing is to create multi-line textView similar to messages app.
One simple implementation you can find as http://www.hanspinckaers.com/multi-line-uitextview-similar-to-sms ....
Otherwise, you can always write your own library, by testing all the behaviours.
I have a question about altering the height of a UITextField. I have already made the object in Interface Builder and the height is fixed as 31. I have searched around on the net and this doesnt seem to be a popular thing to do.
link to apple dev page
Regards #norskben.
OK, I answered my own question.
The default textfield with the curly edges is the only one that cant be resized.
Design wise I am using a label to provide a white backing.
Source