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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 13, 20262026-06-13T13:14:14+00:00 2026-06-13T13:14:14+00:00

I am creating a side menu in a table view that has custom UITableViewCell’s.

  • 0

I am creating a side menu in a table view that has custom UITableViewCell’s.

I have created a reusable cell which is used in the following:

- (UITableViewCell *)tableView:(UITableView *)tableView cellForRowAtIndexPath:(NSIndexPath *)indexPath
{
static NSString *CellIdentifier = @"Cell";
LeftMenuTableViewCell *cell = [tableView dequeueReusableCellWithIdentifier:CellIdentifier];

if (cell == nil) {

    NSArray* views = [[NSBundle mainBundle] loadNibNamed:@"LeftMenuTableViewCell" owner:nil options:nil];

    for (UIView *view in views) {
        if([view isKindOfClass:[UITableViewCell class]])
        {
            cell = (LeftMenuTableViewCell*)view;
            [cell.displayName setText:[NSString stringWithFormat:@"Cell 1"];

        }
    }
}

return cell;

}

I would like to know how to create other cells for this table. The table will be like a Facebook/Path side Menu. For example
My Profile
Settings
Help
Logout

Each would have the same design, although different text for the label and for the icon next to it. Also would load a different view controller on the right. Can someone explain how this is accomplished? Or provide a link to any tutorial which explains making a custom table view with multiple different cells, would I need to duplicate the cell .h, .m and NIB file and create each custom UITabelViewCell separately?

  • 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-13T13:14:15+00:00Added an answer on June 13, 2026 at 1:14 pm

    Use the same cell class and put it as(Since there are no design change to cell and only text and images are changing),

    - (UITableViewCell *)tableView:(UITableView *)tableView cellForRowAtIndexPath:(NSIndexPath *)indexPath
    {
      //some code
      if () { //condition 1 
         cell.textLabel.text = @"My Profile";
         cell.imageView.image = [UIImage imageNamed:@"MyProfile.png"];
      } else if () { //condition 2
         cell.textLabel.text = @"Settings";
         cell.imageView.image = [UIImage imageNamed:@"Settings.png"];
      } else if () { //condition 3
         cell.textLabel.text = @"Logout";
         cell.imageView.image = [UIImage imageNamed:@"Logout.png"];
      } 
      //some code
    }
    

    In didSelectRowAtIndexPath method,

    if () { //condition 1, say indexpath.row == 0
      //go to firstviewcontroller
    } else if () { //condition 2, say indexpath.row == 1
      //go to secondviewcontroller
    } else if () { //condition 3, say indexpath.row == 2
      //go to thirdviewcontroller
    }
    

    This should work for you right?

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

Sidebar

Related Questions

I am creating a client side swing app that will have data provided by/from
I am creating an object server-side which is to have all of the data
i am creating simple side menu, such that when the user hover on item
I'm creating a side-bar menu for a site, which should only show sub-menus in
How would one go about creating an ipad app that has a similar view
I'm creating a web site that I think must have a client side database.
I'm creating a custom control in wxWidgets that displays a menu as part of
I am creating a project that only uses client side languages. I want to
I am creating a flash, virtually it has 2 columns, right side play a
I'm creating a 2d side scrolling game and have a question regarding the collision.

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.