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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 17, 20262026-06-17T09:26:33+00:00 2026-06-17T09:26:33+00:00

when I nslog the value after setting it it is NULL, any word why?

  • 0

when I nslog the value after setting it it is NULL, any word why?

CustomCollectionVIewCell *cell =[[CustomCollectionVIewCell alloc]init];
NSString *name =[dict valueForKey:@"filterName"];//works
[cell.labelDisplay setText:name];//does not
NSLog(@"name = %@",cell.labelDisplay.text);
cell.isSelected=NO;
[_availableHealthFilters setObject:cell atIndexedSubscript:i];
  • 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-17T09:26:34+00:00Added an answer on June 17, 2026 at 9:26 am

    init your labelDisplay in custom cell.

    //customColectionCell.h
    @property(strong,nonomatic) NSString *labelText;
    -(void)setCellLabelText:(NSString *)labelText;
    //customCollectionCell.m
    -(id)init{
    //init cellLabel and addSubView to customCell 
    
    }
    //Than set label in custom method
    -(void)setCellLabelText:(NSString *)labelText{
    _labelText = labelText;
    sefl.labelDisplay.text = labelText;
    }
    
    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

Check it: NSUserDefaults *defaults = [NSUserDefaults standardUserDefaults]; NSLog(@Checking login--user value is %@, [defaults valueForKey:@userID]);
I'm getting weird NSString value after performing a conversion. For example, I have one
NSLog(@"original float value = %f", [anNSNumber floatValue]); float newFloat = [anNSNumber floatValue] - 1.0f;
I am trying to print (nslog) the name of a photo embedded in PhotoView
I have a importFile stored at NSString* importFile (printed with NSLog %@): /var/mobile/Applications/5CE1D252-E56A-4AAC-B88E-5B0CEFFF55B3/Library/Caches/tmp/temp_695D39E3-3359-415F-9C0D-243E2E117B8B-456-0000001384C17BBA.tmpfile I
I have xml string. It's wrong string. But after using NSLog and coping it
Retrieving a value from standardUserDefaults using integerForKey after saving with setInteger:forKey always crashes app.
I want to validate the string value after getting in the below parser delegate
after nsXml pasring value of my NSMutable array AB =\n\n\n\thttp://xyz.com/uploads/resto_6298__20091209@1621_250.JPG\n\thttp://xyz.com/uploads/resto_6298__200912099_2_250.JPG\n now i am doing
I have the following example class: Test.h: @interface Test : UIButton { NSString *value;

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.