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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 31, 20262026-05-31T18:22:29+00:00 2026-05-31T18:22:29+00:00

I was just playing around with IOS and I hit a problem and it

  • 0

I was just playing around with IOS and I hit a problem and it seems so simple that I can’t believe it’s not working

I have a table list
I have set up all the delegate so that it displays information from a plist

that works

however when I switched to my custom view for the internal layout, I get the default text of the view but not the text form the plist

Here is some code of the table view controller:

    - (UITableViewCell *)tableView:(UITableView *)tableView cellForRowAtIndexPath:(NSIndexPath *)indexPath
{
     UITableViewCell *cell = [tableView dequeueReusableCellWithIdentifier:@"DefaultCell"];

    if(cell == nil){
        cell = [[UITableViewCell alloc] initWithStyle:UITableViewCellStyleDefault reuseIdentifier:@"DefaultCell"];
    }

        EmergencyContactItemConrtroller *genericViewController = [[EmergencyContactItemConrtroller alloc] initWithNibName:@"EmergencyContactItemConrtroller" bundle:nil];

[genericViewController setInitialParametersWithTitle:[[emergencyArray objectAtIndex:indexPath.row]objectForKey:@"Title"]
                                        withCatption:[[emergencyArray objectAtIndex:indexPath.row]objectForKey:@"Caption"]
                                          withNumber:[[emergencyArray objectAtIndex:indexPath.row]objectForKey:@"Number"]
                                       withOtherInfo:nil];

[cell.contentView addSubview:genericViewController.view];

return cell;

}

and here is the code of setInitialParametersWithTitle in the cell view controller.

-(void) setInitialParametersWithTitle:(NSString *)title
                         withCatption:(NSString *)caption 
                           withNumber:(NSString *)number
                        withOtherInfo:(NSDictionary *)otherInfo{
    self.titleLable.text = title;
    self.captionLable.text = caption;
    [self.numberButton setTitle:number forState:UIControlStateNormal];
}

I checked that the xib IBOutlet are linked correctly.

when I try to debug I get he right values send to the function, how ever when I printout self.titleLable.text before assigning a value to it, there is no value in it.

Any Ideas ?

Jason

  • 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-31T18:22:30+00:00Added an answer on May 31, 2026 at 6:22 pm

    EmergencyContactItemConrtroller is UIViewController class?
    All IBOutlets will initialized after

    [cell.contentView addSubview:genericViewController.view] 
    

    is done; Then you should change them

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

Sidebar

Related Questions

I'm just playing around with FastMember and have hit a problem. Each time I
I'm just playing around with WPF and MVVM, and I have made a simple
I'm just playing around with a simple program that opens the camera. That's literally
I'm playing around with drawing in iOS apps. I have a class that is
I am just playing around with Go and do not yet have a good
Just playing around with some sample code and hit on an unexpected problem with
I just started playing around with threading today and I ran into something that
I just started playing around with the 960 CSS framework and found that it
I'm just starting out playing around with Linq Expressions and I've hit a wall.
Just playing around with some of the APIs in .NET and I can't seem

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.