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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 31, 20262026-05-31T13:32:16+00:00 2026-05-31T13:32:16+00:00

The cells of my UITableView are grouped text fields. When I run my code

  • 0

The cells of my UITableView are grouped text fields. When I run my code on the emulator, I get this:

Grouped text fields and button

As you can see there is a gray area around the text fields while the background of the UITableView and the button is white. Is it possible to remove, or make invisible, the gray border (not the separator or the frame but the area) around the grouped cells? If so, how can I do that?

Update: Background color is working on iPhone but not on iPad. I’m working on iPad.

I fixed the problem. Solution:

UIView *clearView = [[UIView alloc] initWithFrame:[myTableView bounds]];
clearView.backgroundColor = [UIColor clearColor];
myTableView.backgroundView = clearView;
[clearView release];

Since setting the background on the xib file is not working, I did it programatically. Here, myTableView is the tableView object on the xib. As you can see, I replaced the background view with a view that has a clear color (transparent). The desired effect is achieved.

  • 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-31T13:32:16+00:00Added an answer on May 31, 2026 at 1:32 pm

    If you mean the table view’s background colour you can do it in the nib

    enter image description here

    Making the background colour clear just means you have to be aware of what is behind the table – as you will then see that!

    If you mean the gray lined border You have to do it in code.. So in say the viewDidLoad method of the table view’s owning class.

    self.tableView.separatorColor = [UIColor clearColor];
    
    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

any ideas why I can't reduce/remove the space between cells in a Grouped UITableView
I have a grouped UITableView which displays a number of cells, which includes both
Is there a simple way to preload all the cells in a uitableview? I
I have a UITableView with 15 cells, each with a separate text box in
I'm creating a uitableview with custom cells which I created in Interface Builder. There
I have a grouped UITableView that contains several cells (just standard UITableViewCell s), all
I have a grouped UITableView, with cells in section 2 depending on cells in
I have a grouped UITableView and one of the cells displays the name of
I have a small form (5 fields) in a grouped UITableView. Each UITextField is
Look at this image: alt text http://img139.imageshack.us/img139/4488/picture2ep3.png I know how to add UITableView with

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.