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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 1, 20262026-06-01T11:58:21+00:00 2026-06-01T11:58:21+00:00

I have the following code to show me a custom list with images and

  • 0

I have the following code to show me a custom list with images and some text next to it but I can not see my list filled with the five sample data given. Can someone help me???

#import "RestListViewController.h"
#import "RestListCustomTableCell.h"

@implementation RestListViewController

/*
// The designated initializer. Override to perform setup that is required before the view is    loaded.
 - (id)initWithNibName:(NSString *)nibNameOrNil bundle:(NSBundle *)nibBundleOrNil {
      self = [super initWithNibName:nibNameOrNil bundle:nibBundleOrNil];
      if (self) {
      // Custom initialization
 }
 return self;
 }
 */

/*
 // Implement loadView to create a view hierarchy programmatically, without using a nib.
 - (void)loadView {
 }
 */


  // Implement viewDidLoad to do additional setup after loading the view, typically from a nib.
  - (void)viewDidLoad {
 [super viewDidLoad];
    }
  - (UITableViewCell *)tableView:(UITableView *)tableView cellForRowAtIndexPath:                     (NSIndexPath       *)indexPath {
    //NEVER REACHES HERE!!!!!!!!!!
NSLog(@"BUILD THE TABLE!!!");
static NSString *CellIdentifier = @"Cell";
RestListCustomTableCell *cell = (RestListCustomTableCell *)[tableView dequeueReusableCellWithIdentifier:CellIdentifier];
if (cell == nil) {
    cell = [[[RestListCustomTableCell alloc] initWithFrame:CGRectZero reuseIdentifier:CellIdentifier] autorelease];
}

// Set up the cell…

switch (indexPath.row) {

    case 0:
        cell.primaryLabel.text = @"Meeting on iPhone Development";
        cell.secondaryLabel.text = @"Sat 10:30";
        cell.myImageView.image = [UIImage imageNamed:@"restabapiknik.png"];
        break;
    case 1:
        cell.primaryLabel.text = @"Call With Client";
        cell.secondaryLabel.text = @"Planned";
        cell.myImageView.image = [UIImage imageNamed:@"restburgerking.png"];
        break;
    case 2:
        cell.primaryLabel.text = @"Appointment with Joey";
        cell.secondaryLabel.text = @"2 Hours";
        cell.myImageView.image = [UIImage imageNamed:@"restburgerstory.png"];
        break;
    case 3:
        cell.primaryLabel.text = @"Call With Client";
        cell.secondaryLabel.text = @"Planned";          
        cell.myImageView.image = [UIImage imageNamed:@"restkfc.png"];
        break;
    case 4:
        cell.primaryLabel.text = @"Appointment with Joey";
        cell.secondaryLabel.text = @"2 Hours";
        cell.myImageView.image = [UIImage imageNamed:@"restmcdonalds.png"];
        break;
    default:
        break;
}
return cell;
 }

/*
  // Override to allow orientations other than the default portrait orientation.
  - (BOOL)shouldAutorotateToInterfaceOrientation:(UIInterfaceOrientation)interfaceOrientation {
  // Return YES for supported orientations
  return (interfaceOrientation == UIInterfaceOrientationPortrait);
  }
  */

 - (void)didReceiveMemoryWarning {
// Releases the view if it doesn't have a superview.
[super didReceiveMemoryWarning];

// Release any cached data, images, etc that aren't in use.
 }

  - (void)viewDidUnload {
// Release any retained subviews of the main view.
// e.g. self.myOutlet = nil;
 }


 - (void)dealloc {
 [super dealloc];
 }

@end

And the header file is as follows:

 #import <UIKit/UIKit.h>

 @interface RestListViewController : UITableViewController {
NSMutableArray      *   myStrings;
 }
 @property(nonatomic, retain)NSMutableArray * myStrings;

 @end
  • 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-01T11:58:22+00:00Added an answer on June 1, 2026 at 11:58 am

    You need to add the method of the delegate representing the number of rows to display in Tableview

    //.m
    - (NSInteger)tableView:(UITableView *)tableView numberOfRowsInSection:(NSInteger)section {
        return 10; // numbers of rows
    }
    
    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I have the following code to give a Excel cell Validation with custom text.
i have following code to show div on page <div id=all_users> <div id=user11 userid=11
I have the following code: function show(){ var a=document.getElementById('somediv').style.display; a=block; } The above code
Hi people I have the following JavaScript code in my Show All Games View:
I have the following code: builder = gtk.Builder() builder.add_from_file(glade_file) builder.get_object(windowMain).show() socket = gtk.Socket() socket.add_id(long(OpenGLWindowID))
I have the following code to build a custom taxonomy for my portfolio: add_action(
I have created a custom alertdialog by the following code: AlertDialog.Builder builder; AlertDialog alertDialog;
I am following this code to create a custom list view. It uses an
I made some meta_values under a custom post type called 'Show'. I have confirmed
I have following code in initialization im = imread('Image02.tif'); figure(); imagesc(im); colormap(gray); [hImage hfig

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.