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

The Archive Base Latest Questions

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

Have have created a child of UITableViewCell , MenuItem which contains functionality for my

  • 0

Have have created a child of UITableViewCell, MenuItem which contains functionality for my custom table cell. I have also created a xib-file with a custom cell and set the UITableViewCell in the xib-file to have the class MenuItem. The name of the xib-file is MenuItem as well. In my UITableViewController class I’m doing this in ViewDidLoad:

UINib *menuItems = [UINib nibWithNibName:@"MenuItem" bundle:nil];
[[self tableView] registerNib:menuItems forCellReuseIdentifier:@"MenuItem"];

But the background color used in the xib-file isn’t used in the cells the table displays. If I add a new label, it shows up, but the background color is just plain white. Does anyone know why?

EDIT: I do use [tableView dequeueReusableCellWithIdentifier:@"MenuItem"]; in cellForRowAtIndexPath.

  • 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-17T16:16:28+00:00Added an answer on June 17, 2026 at 4:16 pm

    Thanks to Sudha for links to the answer.

    It turns out you can’t set the background color in the xib-file. You have to do it in the willDisplayCell of the delegate. Read http://developer.apple.com/library/ios/#documentation/uikit/reference/UITableViewCell_Class/Reference/Reference.html, outlined box close to the top.

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

Sidebar

Related Questions

I have created my own control which contains TextBox control as a child control.
I have created a child.jsp file which has a button named Continue. I have
I have created a custom control which displays a number pad. The control has
I have created a children's app that has a child lock using a custom
I have an Entity (QuoteSheet) that contains a child entity (QuoteTask), which is loaded
I have created a table view and want that when i click a cell
I have created a custom ViewGroup in which I create a couple of custom
I have created a window whose handle is handle_parent. Then I created a child
I have created 3 classes as following Ext.mine.TextParent - Inherting from Textfield Ext.mine.child.TextChildA -
I have a scenario where i created pipe for communication between two child and

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.