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

The Archive Base Latest Questions

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

I have a UITableViewController with an attached xib file. Inside the xib file i

  • 0

I have a UITableViewController with an attached xib file. Inside the xib file i have a TableViewCell object with a view inside it along with labels on the view. Below is an image of what my result should be:

pic1 http://casperslynge.dk/2.png

And below is how my tableview is looking atm.

pic2 http://casperslynge.dk/iphone1.png

My issue is that I can’t get the table view cell to fill the entire window. Have tried everything inside the interface builder. Nothing to do with the origin or the width/height. Below is how I instantiate my cell with the xib file and fill my labels with data.

- (UITableViewCell *)tableView:(UITableView *)tableView
     cellForRowAtIndexPath:(NSIndexPath *)indexPath {

static NSString * CompanyListCellIdentifier =
@"CompanyList";

UITableViewCell *cell = [tableView dequeueReusableCellWithIdentifier:CompanyListCellIdentifier];
  if (cell == nil) {
    NSArray *topLevelObjects = [[NSBundle mainBundle] loadNibNamed:@"CompanySubscriptionView" owner:self options:nil];
    cell = [topLevelObjects objectAtIndex:0];

}
NSUInteger row = [indexPath row];
CompanyModel *company = [list objectAtIndex:row];

name.text = company.name;
network.text = company.networks;
NSString* subscriptionCountString = [NSString stringWithFormat:@"%d", company.subscriptions.count];
subscriptionCount.text = subscriptionCountString;
fromPrice.text = company.fromPrice;
NSString* trustScoreString = [NSString stringWithFormat:@"%d", company.trustScore];
trustScore.text = trustScoreString;

cell.accessoryType = UITableViewCellAccessoryDisclosureIndicator;
return cell;

}

The weird thing is that in the next view when one of the cell’s are pressed, I have no issue making the view fill the entire width and height, and it is created in exactly the same way (see picture below). Is it something in the xib file that I am doing wrong or in the code?

pic3 http://casperslynge.dk/iphone2.png

Can anybody help?

  • 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-25T19:31:23+00:00Added an answer on May 25, 2026 at 7:31 pm

    As I see from screenshots you are trying to use table view with grouped style while you definitely need a plain one (at least for first view).

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

Sidebar

Related Questions

I have a UITableViewController, which is RootViewController. It's XIB only has a table view.
I am using a UITableViewController which uploads a table. I have a Nib File
I have a UITableViewController that when opened displays a table of the following object:
I have a UITableViewController with a table view that works perfectly when in portrait
I have a UITableViewController where the user should be able to edit the items.
I have a UITableViewController in my app, which is added to the view hierarchy
I have a UITableViewController which in it's tableView:didSelectRowAtIndexPath method, sets up a view controller,
I have a UITableViewController that uses didSelectRowAtIndexPath: to init a view controller with initWithNibName:
I have a UITableViewController (MyViewController.xib). This is showing 3 rows with their title. I
I have a UITableViewController that has a UISearchbar in its header view. When the

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.