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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 7, 20262026-06-07T07:56:18+00:00 2026-06-07T07:56:18+00:00

I have a UILabel, which I made using the nib. To my code I

  • 0

I have a UILabel, which I made using the nib.

To my code I have added (in the appropriate places)

IBOutlet UILabel *question;

@property (nonatomic, retain) IBOutlet UILabel *question;

@synthesize question;

In the nib, I have connected the label to the file’s owner.

However, something like question.text = @"test" yields no result. Also, an NSLog showed me that (question == nil) is TRUE

What did I do wrong?

  • 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-07T07:56:20+00:00Added an answer on June 7, 2026 at 7:56 am

    there may be more issues that is causing this problem.
    I’ll list out some, may you get help

    as you said, you are using your own method to construct your class

    • QuizController *quizController = [[QuizController alloc] initWithNibName:@”QuizController” bundle:nil data:data.quizQuestions]

    check your initWithNibName method again.
    you have to do

    self = [super initWithNibName:nibNameOrNil bundle:nibBundleOrNil];
    
    • check your nib file again, class of File's Owner is QuizController on Identity Inspector
    • and in which method you are using question.text = @"test". Try to assign text on viewDidLoad method, not on your constructor.

    let me know the results

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

Sidebar

Related Questions

I am creating an app which will have a question in a UILabel and
I have a custom subclass of UILabel which makes custom drawing using CoreText. I
I have a UILabel which I change through the code. However when I create
I have an UIButton to which an UILabel was added as a subview. Is
I have a button which has been added to a UILabel and that UILabel
I have a UILabel which contains textvalue and i want to bold a particular
I have a string coming from server which I am displaying on UILabel. It
I made a very simply table view, with load more function. I have added
I have a UILabel which should have transparency (alpha) = .6 but Text of
In my app I have a UILabel which is the title and a UITextView

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.