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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 25, 20262026-05-25T15:50:36+00:00 2026-05-25T15:50:36+00:00

This should be a pretty basic question, I’ll be happy even if you can

  • 0

This should be a pretty basic question, I’ll be happy even if you can link to some sort of article/tutorial that covers this (or a similar) subject.

I have an application with four tabs, each tab containing a navigation controller with a table view. I am not using UITableViewController subclasses, as I want to have a static view on top of some tables and an image background below everything. I am also using different types of custom cells (mostly configured with images and code in -willDisplayCell). As I want the same look and feel for all my tables, I am wondering how could I reuse some code, but I’m having trouble to figure this out. Do I have to create a “base” UIViewController subclass with a UITableView outlet, and then use this one as my superclass? Or do I have to just implement my UITableViewDelegate in a separate class and use an object of that class as the table view delegate? Or should I use a custom UITableView and subclass that one instead?

I could give more details if needed, but I suppose this is enough for a starting discussion. Thanks for any 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-25T15:50:37+00:00Added an answer on May 25, 2026 at 3:50 pm

    I would consider subclassing UITableView and setting the dataSource and delegate to self and implement GUI logic inside the class and create a custom logic for getting your data in and out (probably forwarding some dataSource/control delegate functions to one of your VCs).

    The layouting code for cells should really be placed inside cell logic! You should consider creating custom UITableViewCell subclasses (and maybe XIBs for them) that contain logic for layouting & reusing. (Maybe a dataObject property that makes the cell read your model?!). You can then use your UITableView subclass to create and manage those cells (e.g. a mapping between model classes and XIB names)

    This is probably a way to generate a lot of reusable code where you just need to change details like adding model classes or modifying their layouting, or subclassing model classes or subclassed UITableViewCells.

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

Sidebar

Related Questions

I'm pretty sure this is a basic question but for some reason i can't
I'm pretty sure this is a basic question but for some reason i can't
This a pretty basic question. Let's say I have this iPhone/iPad app that, at
I am new to PHP and MYSQL so this should be a pretty basic
This is pretty basic question around unit testing. I have a method e.g. GetOrderDetails
I'm afraid this question is pretty basic, but I think it's relevant to a
I'm new to Objective C and have a pretty basic question. So I have
I've seen this other question: How to use Python to login to a webpage
edit: Ok, to put this in a question, I'm asking for possible ways I
I am new to the world of Java and web programming. Never wrote a

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.