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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 15, 20262026-06-15T00:39:22+00:00 2026-06-15T00:39:22+00:00

Condition: I have a custom TableViewCell and I do all things programmatically, no xibs.

  • 0
  1. Condition: I have a custom TableViewCell and I do all things programmatically, no xibs.
  2. if I want to do a MVC(split the view and the action), To use a TableView or to use a Single TableViewController, which is better for the MVC design?
  3. As far as I know TableView is just a UI view, and TableViewController can contain some logic. Do that mean, if I want a strict MVC design, I need to use TableView and another object-c file to handle the logic of the TableView, TableViewCell.

I have searched this on stackoverflow, google, and do not have a specific answer or a good understanding.

  • 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-15T00:39:23+00:00Added an answer on June 15, 2026 at 12:39 am

    UITableViewCell subclass can act as Model. It can contain views that you display in UIView.

    Create a method inside UITableViewCell subclass that inits the data and inserts it in the subviews of current cell.

    In “tableView cellForRowAtIndexPath” method you instantiate your CustomCell class.

    UITableViewController is the same as you will create by yourself UIViewController and put UITableView in it. It was subclassed from UIViewController only for user’s convenience. And sets delegate and datasource without need from your side to set them.

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

Sidebar

Related Questions

We have a custom action that we want to run ONLY on a major
I have this in my tableView:cellForRowAtIndexPath: if (condition) { // make a custom cell
I have if condition and I want to disable or enable my actionLink button.
I want to toggle a class based on some condition which I have to
I have a custom class called Rows that implements IEnumerable<Row> . I often use
I have created an application that contains a list field(custom) If a certain condition
I have a custom dependency property that I would like to use as a
i have a custom UIView which is presented from a UIViewController . This view
I have a custom list view with image view and text view.I am loading
i have created a custom tableview cell in which i am displaying the values

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.