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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 23, 20262026-05-23T15:21:27+00:00 2026-05-23T15:21:27+00:00

I’ve been searching everywhere on Apple.Developer and Stackflow and haven’t come to a clear,

  • 0

I’ve been searching everywhere on Apple.Developer and Stackflow and haven’t come to a clear, standard and proper way of handling this. Basically what I’m looking to do is how to represent more than one customized cell type in a table. Also, there are other tables in the app that will potentially reuse some customized cells.

Most of the time, tables will have the same cell type repeated over and over. But in a few cases, I have a table with a couple types of complex custom cells.

Listed below are the different ways I’ve learned you can do this. I’ve tried each one and they all work but I’m unsure of the “proper” way and a way that Apple won’t reject.

1) programatically – ultimately, this is the best choice for performance. But if there’s a way that I can draw complex customized cells in Interface Builder, it would be the better choice. This is what I’m trying to avoid.

2) a customized cell class with a separate XIB – each customized cell has its own header/implementation/XIB and is a subclass of UITableViewCell. A single cell in a XIB has its file owner set to a specific UITableViewController class. The View here has also been removed.

3) a customized cell in the same XIB as the view controller’s XIB – I read that this is bad. A controller should only be associated with a single view in the hierarchy. I included a customized cell in the XIB at the same level as the view and then just linked it up to the controller’s IBOutlet.

4) a separate common XIB – this is essentially a dumping ground for customized cells. The view here has also been removed. The XIB contains multiple cells and each cell is associated with a specific subclass of UITableViewCell. A header and implementation file contain the definition and implementation for each cell that is subclassed from UITableViewCell. In the controller that is showing the table, the method cellForRowAtIndexPath, loops through the NSBundle for this common XIB and finds the cell associated with a specific subclass type of UITableViewCell. Then it returns that. This works beautifully for reuse throughout the app but something is telling me it’s bad.

What would be the proper way for different cell types in a single table?

  • 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-23T15:21:27+00:00Added an answer on May 23, 2026 at 3:21 pm

    Simply, if it works for you then go for it. All of these ideas are viable solutions.

    Personally, I’d go for them in this order : 2, 1, 4, 3. Though that’s just my personal preference.

    PS None of these ideas are going to get your app rejected by Apple.

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

Sidebar

Related Questions

I'm parsing an RSS feed that has an ’ in it. SimpleXML turns this
I have a string like this: La Torre Eiffel paragonata all’Everest What PHP function
I have a jquery bug and I've been looking for hours now, I can't
link Im having trouble converting the html entites into html characters, (&# 8217;) i
For some reason, after submitting a string like this Jack’s Spindle from a text
this is what i have right now Drawing an RSS feed into the php,
I have this code: - (void)parser:(NSXMLParser *)parser foundCDATA:(NSData *)CDATABlock { NSString *someString = [[NSString
Does anyone know how can I replace this 2 symbol below from the string
I have some data like this: 1 2 3 4 5 9 2 6
That's pretty much it. I'm using Nokogiri to scrape a web page what has

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.