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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 13, 20262026-06-13T14:49:07+00:00 2026-06-13T14:49:07+00:00

I need a UITableView delegate method that need to be called from another function

  • 0

I need a UITableView delegate method that need to be called from another function at compilation time…is there any default UITableView delegate methods that i can use? if not, please comment on how to add an extra delegate method in addition to the existing ones.

Thanks in advance

  • 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-13T14:49:08+00:00Added an answer on June 13, 2026 at 2:49 pm

    Make sure you set UITableview Delegate in either way – from NIB or programatially

    Using NIB
    From Nib :-

    enter image description here

    Programatically :-
    enter image description here

    then:-

    -(void)viewWillAppear:(BOOL)animated
    {
             tblService.delegate=self;
             tblService.dataSource=self;
             [super viewWillAppear:YES];
    }
    

    Use following delegates:

    - (NSInteger)numberOfSectionsInTableView:(UITableView *)tableView
    {
        return 1;    //count of section
    }
    
    
    - (NSInteger)tableView:(UITableView *)tableView numberOfRowsInSection:(NSInteger)section {
    
        return [catagorry count];    //count number of row from counting array hear cataGorry is An Array
    }
    
    
    
    - (UITableViewCell *)tableView:(UITableView *)tableView
                 cellForRowAtIndexPath:(NSIndexPath *)indexPath
        {
            static NSString *MyIdentifier = @"MyIdentifier";
    
            UITableViewCell *cell = [tableView dequeueReusableCellWithIdentifier:MyIdentifier];
    
            if (cell == nil)
            {
                cell = [[[UITableViewCell alloc] initWithStyle:UITableViewCellStyleDefault
                                               reuseIdentifier:MyIdentifier] autorelease];
            }
    
            // Here we use the provided setImageWithURL: method to load the web image
            // Ensure you use a placeholder image otherwise cells will be initialized with no image
            [cell.imageView setImageWithURL:[NSURL URLWithString:@"http://example.com/image.jpg"]
                           placeholderImage:[UIImage imageNamed:@"placeholder"]];
                cell.textLabel.text = @"My Text";
            return cell;
        }
    

    Below use for set height of cell

    - (CGFloat)tableView:(UITableView *)tableView heightForRowAtIndexPath:(NSIndexPath *)indexPath
    {
    
            return 80;
    
    }
    

    Below use for gatting particular cells data by selecting row this method called

    - (void)tableView:(UITableView *)tableView didSelectRowAtIndexPath:(NSIndexPath *)indexPath{
    
            Yourstring=[catagorry objectAtIndex:indexPath.row];      
    
           //Pushing next view 
            cntrSecondViewController *cntrinnerService = [[cntrSecondViewController alloc] initWithNibName:@"cntrSecondViewController" bundle:nil];
            [self.navigationController pushViewController:cntrinnerService animated:YES];
    
    }
    
    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I have setup a delegate method, so that when user selects cell from VC2,
Sometimes I need to make a UITableView that resembles a menu and has rows
So I have a subclassed UITableView that lists data. I need to make only
I am trying to setup a UITableView that displays the data from the Documents
I'm working with UITableView in UIViewController..I am using the following delegate methods..... -(NSInteger) tableView:(UITableView
I need to tell a uitableview to reloadData when something happens on another view
I have a bunch of connection related methods that I need to execute before
I have a UITableView that is populated with custom cells (inherited from UITableViewCell ),
I need to get the full height of a UITableView (i.e. the height at
I need to set the height for a single UITableViewCell in my UITableView programmatically.

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.