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

  • Home
  • SEARCH
  • 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 4092768
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 20, 20262026-05-20T19:32:00+00:00 2026-05-20T19:32:00+00:00

I am downloading UITextView contents from a web server and it just returns text

  • 0

I am downloading UITextView contents from a web server and it just returns text without any line feeds. I inserted \n, \\n, [CR], and more into the place I want to change the line but none of these worked. How can I change the line for the text in UITextView?

  • 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-05-20T19:32:01+00:00Added an answer on May 20, 2026 at 7:32 pm

    Weird. Works for me.

    _subtypeField = [[UITextView alloc] initWithFrame:CGRectMake(28, 189, self.bounds.size.width-30, 100)];
    [_subtypeField setFont:[UIFont fontWithName:@"Helvetica" size:13]];
    [_subtypeField setText:@"Examples:\n- Fentanyl\n- Dilaudid 2 mg PO q 4 hours prn moderate pain"];
    [_subtypeField setTextAlignment:UITextAlignmentLeft];
    [_subtypeField setTextColor:[UIColor colorWithRed:0.494 green:0.647 blue:0.808 alpha:1.0]];
    [_subtypeField setOpaque:NO];
    [_subtypeField setBackgroundColor:[UIColor clearColor]];
    [_subtypeField setUserInteractionEnabled:NO];
    [self addSubview:_subtypeField];
    

    Perhaps something goes wrong when you convert the C string into an NSString? Are the linefeeds still in the NSString?

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

Sidebar

Related Questions

I'm downloading from clickonce server new versions of files by my autoupdater. However, any
I am downloading a JSONObject from a web site. The entries are however HTML-encoded,
A small question concerning downloading xml files from a remote server. I am using
I am downloading and saving a radar image (in .gif format) from with web
After downloading images it saves them to this location String extStorageDirectory; protected void onCreate(Bundle
I'm downloading zip files and place them in isolated storage on Windows Phone 7.
I need basic file downloading capabilities in my app and I cannot use WebClient.DownloadFile
I need to create downloading bar, when URL is loading on UIWebview to my
I'm downloading a lot of images to display to the user. Each of this
I'm having trouble downloading the Google App Engine plugin for Eclipse. Specifically, it times

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.