Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • SEARCH
  • Home
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 8449095
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 10, 20262026-06-10T10:36:33+00:00 2026-06-10T10:36:33+00:00

I have a UITextView which I’m assigning a large amount of text to (~25

  • 0

I have a UITextView which I’m assigning a large amount of text to (~25 lines). It works fine if I don’t define a font against the textview, but as soon as I set the font to be anything above size 13, then the text disappears completely (though still scrollable).

The other thing is that if I slowly type in text manually to reach the cross over point, the last line is split in two, and continuing to type just produces blank text.

Its as if the text view can only contain so much visible text and as soon as that is reached the text becomes blank.

Any suggestions welcome.

EDIT:
Actually copying and pasting the above answer text into the text view, and then adding one more line is enough to make it start to turn invisible. Then when reloading the text view with the updated text (i.e answer above plus one line), its all invisible.

Setting the font size is enough to break it, just by doing systemFontOfSize: to 14. The actual font size which causes it varies depending on the amount of text in the text view.

Also using ARC.

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-06-10T10:36:35+00:00Added an answer on June 10, 2026 at 10:36 am

    So what I suggest you do is create a new single view project in Xcode, add a single UITextView to your view, and then manipulate it exactly as you are in the main project. You are doing something wrong – setting the font to nil, someone releasing the textView, or otherwise corrupting it. All messages to it MUST be on the main thread. Add asserts after any object property you are sending to the textView. As you can see huge font huge text is working just fine for me doing as I’m suggesting you do. The ideas is to start with something that works, keep adding code from your main project to the test project until you find exactly what you are doing that is causing the problem.

    enter image description here

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I have a UITextView which I am using to display text. Along the side
I have an UITextView which is for instance 380 characters in length: NSLog(@aTextView.text lenght
In a UITextView have a text which is for readonly and dont want any
I have a UITextView , which sets its text dynamically from an RSS feed.
I have a UITextView, which sets its text dynamically from an RSS feed. The
I'm writing iPhone/iPad application. I have UITextView in which I automatically appending text. How
I have a UIScrollView which has a subview UITextView. When I added text to
I have an UITextView which can have multiple lines. All I'm interested in is
I have a UITextView in which i have 5 hyperlinks and 5 phone numbers.How
I have HTML Content which was being displayed in a UITextView . The next

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.