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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 27, 20262026-05-27T16:53:40+00:00 2026-05-27T16:53:40+00:00

Ha ii every body,i am using accessory view checkmark for selection multiple values from

  • 0

Ha ii every body,i am using accessory view checkmark for selection multiple values from a UITableview cell,i put the this code in DidSelectRowAtIndexPath

NSArray* toReload = [NSArray arrayWithObjects: indexPath, self.selectedIndexPath, nil];
    self.selectedIndexPath = indexPath;
    if ([[tableView cellForRowAtIndexPath:indexPath] accessoryType] == UITableViewCellAccessoryCheckmark){

        BOOL selected = [[appDelegate.notesArray objectAtIndex:[indexPath row]] boolValue];
        [appDelegate.notesArray replaceObjectAtIndex:[indexPath row] withObject:[NSNumber numberWithBool:!selected]];

        [[tableView cellForRowAtIndexPath:indexPath] setAccessoryType:UITableViewCellAccessoryNone];
    }

    else {

        [[tableView cellForRowAtIndexPath:indexPath] setAccessoryType:UITableViewCellAccessoryCheckmark];

    }

My need is when the user select the multiple values from the uitableview cell,it has to be stored in a array and pass the array to the button click.i want these array to share in googledoc.How to get that array of multiple values from the UITbleViewCell.what code did i put it in button click?and i want to pass that value for share.if any sample code is there for reference it would be a great help for me.
Thanks in advance.
EDIT:

- (IBAction)doUpload:(id)sender
{

    NSMutableArray *selected_items = [[NSMutableArray alloc] init];

    for (int i = 0; i<[appDelegate.notesArray count]; i++) {
        if (selected[i]) [selected_items addObject:[appDelegate.notesArray objectAtIndex:i]];


            UploadView *uploadview = (UploadView *)self.view;
            if (uploadview != nil)
            {

                [m_owner uploadString:@""];
                //[self dismissModalViewControllerAnimated:YES];
            }


        }    
}
  • 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-27T16:53:41+00:00Added an answer on May 27, 2026 at 4:53 pm

    I think what your asking is how to do a multiple select table view? – If so, this should help:

    In your .h

    BOOL selected[/* max number of cells */];
    

    When the user selects a cell

    - (void)tableView:(UITableView *)tableView didSelectRowAtIndexPath:(NSIndexPath *)indexPath
    {
        NSUInteger row = [indexPath row];
    
        UITableViewCell *cell = [tableView cellForRowAtIndexPath:indexPath];
        if (cell.accessoryType == UITableViewCellAccessoryCheckmark) {
            cell.accessoryType = UITableViewCellAccessoryNone;
            selected[row] = NO;
        }
        else {
            cell.accessoryType = UITableViewCellAccessoryCheckmark;
            selected[row] = YES;
        }
    
        [tableView deselectRowAtIndexPath:indexPath animated:YES];
    }
    

    On the button click

    - (void)buttonClick {
        // pass the boolean array into the next controller, or just pass the items you need.
        // for example:
    
    
        for (int i = 0; i<[items count]; i++) {
            if (selected[i]) [m_owner uploadString:[items objectAtIndex:i]];
        }
    }
    

    See here for a demonstration project I’ve made on multiple select.

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

Sidebar

Related Questions

I am currently using this script to get new data every second from record_count.php
hi every body I'm trying to open an image in a new window ,using
I'm using the following code which appears to work perfectly every time on Vista/Win7.
I have been using the following at the top of every page. body, html
Every page on my site has multiple body classes that I use CSS selectors
I am using following code to get notifications from a service nm = (NotificationManager)getSystemService(NOTIFICATION_SERVICE);
everybody! Could I ask you to help me to decode this JSON code: $json
I'm using an online form at one of my web sites. Every mail sent
I'm using JSF 1.2 with Richfaces, and for every ajax request, the server is
I am using this site. Aim : I want to move my footer based

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.