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 3459242
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 18, 20262026-05-18T10:04:57+00:00 2026-05-18T10:04:57+00:00

So I have been doing this awhile now and have run into a really

  • 0

So I have been doing this awhile now and have run into a really strange error. I have a view that contains a UITextView, but when I try to set the text after allocating the view, nothing happens. If I stop it and look at the value, it is 0x0, which really doesn’t make sense. The components have been declared and connected in IB, so that’s not the issue. Here is the part that is giving me problems:

NewView *view = [[NewView alloc] initWithNibName:@"NewView" bundle:[NSBundle mainBundle]];
view.label.text = string1;
view.textView.text = string2;
view.textView.editable = NO;

If I break it there and check the values, that’s where it is 0x0. That’s why it’s not loading, but I can’t figure out why it’s not working. I have done this tons of times and have never seen this before. Anyone have any Ideas what may be going on?

  • 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-18T10:04:58+00:00Added an answer on May 18, 2026 at 10:04 am

    The solution to this was very simple.

    Tejaswi pointed out that the UI components are not initialized until the viewDidLoad: method is executed. So I passed the strings as a varaible and set the field text in the viewDidLoad: method. This worked.

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

Sidebar

Related Questions

I have been on SO for awhile now trying to get this problem solved
Still learning JSP Web Applications here. I have been doing this for a while
I have been doing active development in C# for several years now. I primarily
So I have been doing some research into getting my UTF8 to print correctly.
I have been digging around on this site and googling for a while now
I have been trying to wrap my head around this for a while now
I have been trying this for a while now and can't get it to
I have been having this issue for a while now and I cannot seem
I have been racking my brains over this for a while now. Here is
I have been doing research for a few months now on the possibility of

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.