You are not logged in. Your edit will be placed in a queue until it is peer reviewed.
We welcome edits that make the post easier to understand and more valuable for readers. Because community members review edits, please try to make the post substantially better than how you found it, for example, by fixing grammar or adding additional resources and hyperlinks.
Required fields*
-
1This is working perfectly. I did not set the height. Increasing the priority of UItextview's vertical compression resistance to 1000 was only required. The UItextView has some insets, that's why autolayout gives errors as UItextview will need atleast 32 height, even if no content is in it, when scrolling is disabled.devdoe– devdoe2017-09-02 08:02:09 +00:00Commented Sep 2, 2017 at 8:02
-
Update: Height constraint is required if you want the height to be minimum to 20 or anything else. Other wise 32 will be considered as the min height.devdoe– devdoe2017-09-02 08:16:05 +00:00Commented Sep 2, 2017 at 8:16
-
@Nil Glad to hear it helps.Michael Revlis– Michael Revlis2017-09-04 06:50:35 +00:00Commented Sep 4, 2017 at 6:50
-
@MichaelRevlis, This works great. but when there is a large text then text is not displaying. you can select text do other processing but it is not visible. can you please help me with that. ? it happens when I uncheck scrolling enabled option. when I make textview scrolling enable then it displays perfectly but i want text view not to scroll.Bhautik Ziniya– Bhautik Ziniya2017-11-08 12:57:35 +00:00Commented Nov 8, 2017 at 12:57
-
@BhautikZiniya, have you try to build your app on a real device? I think it might be a simulator displaying bug. I have an UITextView with text font size 100. It is displayed fine on a real device but texts are invisible on a simulator.Michael Revlis– Michael Revlis2017-11-09 09:15:04 +00:00Commented Nov 9, 2017 at 9:15
|
Show 2 more comments
How to Edit
- Correct minor typos or mistakes
- Clarify meaning without changing it
- Add related resources or links
- Always respect the author’s intent
- Don’t use edits to reply to the author
How to Format
-
create code fences with backticks ` or tildes ~
```
like so
``` -
add language identifier to highlight code
```python
def function(foo):
print(foo)
``` - put returns between paragraphs
- for linebreak add 2 spaces at end
- _italic_ or **bold**
- indent code by 4 spaces
- backtick escapes
`like _so_` - quote by placing > at start of line
- to make links (use https whenever possible)
<https://example.com>[example](https://example.com)<a href="https://example.com">example</a>
How to Tag
A tag is a keyword or label that categorizes your question with other, similar questions. Choose one or more (up to 5) tags that will help answerers to find and interpret your question.
- complete the sentence: my question is about...
- use tags that describe things or concepts that are essential, not incidental to your question
- favor using existing popular tags
- read the descriptions that appear below the tag
If your question is primarily about a topic for which you can't find a tag:
- combine multiple words into single-words with hyphens (e.g. python-3.x), up to a maximum of 35 characters
- creating new tags is a privilege; if you can't yet create a tag you need, then post this question without it, then ask the community to create it for you
default