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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 15, 20262026-05-15T13:23:01+00:00 2026-05-15T13:23:01+00:00

I am building a sectioned table, and it is showing up with what looks

  • 0

I am building a sectioned table, and it is showing up with what looks to be a section on top of a section. You can see on the image that there is a white line under each section.

The image

Here is the code I have to build the table:

    - (NSInteger)numberOfSectionsInTableView:(UITableView *)tableView {
    return [alertList count];
}


- (NSInteger)tableView:(UITableView *)tableView numberOfRowsInSection:(NSInteger)section {
    return 1;
}



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

    static NSString *CellIdentifier;

 if (self.interfaceOrientation == UIInterfaceOrientationLandscapeLeft || self.interfaceOrientation == UIInterfaceOrientationLandscapeRight)
 {
  CellIdentifier = @"CellLandscape";
 }
 else
 {
  CellIdentifier = @"Cell";
 }

    UITableViewCell *cell = [tableView dequeueReusableCellWithIdentifier:CellIdentifier];

    if (cell == nil) {
        cell = [[[UITableViewCell alloc] 
     initWithStyle:UITableViewCellStyleSubtitle
     reuseIdentifier:CellIdentifier] 
    autorelease];

  //cell.contentView.backgroundColor = [UIColor blackColor];

  CGRect frame;

  if (self.interfaceOrientation == UIInterfaceOrientationLandscapeLeft || self.interfaceOrientation == UIInterfaceOrientationLandscapeRight)
  {
   frame.origin.x = 370;
   //titleFrame.size.width = 320;
  }
  else
  {
   frame.origin.x = 220;
   //titleFrame.size.width = 220;
  }

  frame.origin.y = 5;
  frame.size.height = 15;
  frame.size.width = 74;

  UILabel *instLabel = [[UILabel alloc] initWithFrame:frame];
  instLabel.tag = 1;
  [cell.contentView addSubview:instLabel];
  [instLabel release];
    }


 // Configure the cell.
 Alert *p = [alertList objectAtIndex:indexPath.section];

 UILabel *instLabel = (UILabel *) [cell.contentView viewWithTag:1];
 instLabel.text = [p docDate];
 instLabel.textColor = [UIColor blackColor];
 [instLabel setFont:[UIFont fontWithName:@"Arial" size:12]];

 NSString *path;

 if ([[p subscription] isEqual:@"Y"])
 {
  path = [[NSBundle mainBundle] pathForResource:@"watchlist_on" ofType:@"png"];
 }
 else
 {
  path = [[NSBundle mainBundle] pathForResource:@"watchlist_off" ofType:@"png"];
 }

 //NSLog(@"%@", path);

 cell.textLabel.textColor = [UIColor colorWithRed:.847 green:0 blue: 0 alpha: 1];
 [cell.textLabel setFont:[UIFont boldSystemFontOfSize:13]];
 cell.textLabel.text = [[NSString alloc] initWithFormat:@"%@", [p Name]];

 cell.detailTextLabel.textColor = [UIColor blackColor];
 [cell.detailTextLabel setFont:[UIFont fontWithName:@"Arial" size: 10]];
 cell.detailTextLabel.text = [p docTitle];

 cell.detailTextLabel.textColor = [UIColor blackColor];
 [cell.detailTextLabel setFont:[UIFont fontWithName:@"Arial" size: 10]];
 //cell.detailTextLabel.text = [p docDate];

 //cell.imageView.image = [UIImage imageWithContentsOfFile:path];
 cell.imageView.userInteractionEnabled = YES;
 cell.imageView.userInteractionEnabled = YES;

 //cell.imageView.image = [UIImage imageWithContentsOfFile:path];

 ///    [cell addSubview:imgView];

 //cell.textLabel.text = [[NSString alloc] initWithFormat:@"%@, %@ G: %@\nDOB: %@ Inst: %@", [p lastName], [p firstName], [p gender], 
 //        [p birthDate], [p inst]];

 cell.accessoryType = UITableViewCellAccessoryDetailDisclosureButton;

 //only 1 alert at a time

 //make doc list from alert object
 Document *documentList1 = [[Document alloc] init];
 self.documentList = documentList1;
 [documentList1 setTitle:[p docTitle]];
 [documentList1 setUniqueId:[p uniqueId]];
 [documentList1 setDate:[p docDate]];
 [documentList1 setRepoOID:[p repoOid]];
 [documentArray addObject:documentList];

    return cell;
}
  • 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-15T13:23:01+00:00Added an answer on May 15, 2026 at 1:23 pm

    Change the table view’s separator style to either single line or none – you probably have it on single line etched.

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

Sidebar

Related Questions

The website that I'm building includes a section where two users can interact. I
I am building a page using blocks of sections: http://jsfiddle.net/NrkTn/3/ You can see I
I am building an admin section for an app I'm working that lists businesses.
I'm currently building a web-app that has one section where the user sees a
building a site using PHP and MySQL that needs to store a lot of
Building a website that has English & Japanese speaking users, with the Japanese users
Building an iPhone OS application that will allow users to anonymously post information to
I'm building a web form that populates dynamically from a stored procedure. It is
I am building a site for a magazine that includes three different sections- articles,
Im building an automatic refreshing comment section for my website using jQuery .load. So

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.