How to share multiple selected values from the UITableview row to facebook or googledoc?
<p>Ha ii everybody i have a Bible application which the user can create notes and Sync it with googledoc.i done every coding for that and i tested the sample note in a textview and pass the value from the textview for upload and it succeed,but my requirement is that i want to get the values from the tableview cell instead of textview,and also i have a multiple select tableview using checkmark and i want to sync if the user select the multiple selection of row .my code for this is</p>

<pre><code>- (NSInteger)numberOfSectionsInTableView:(UITableView *)tableView {
    return [appDelegate.indexArray count];
}


// Customize the number of rows in the table view.
- (NSInteger)tableView:(UITableView *)tableView numberOfRowsInSection:(NSInteger)section {
    return 1;
}
-(UITableViewCellAccessoryType)tableView:(UITableView *)tableView accessoryTypesForRowWithIndexPath:(NSIndexPath *)indexPath
{

    return UITableViewCellAccessoryCheckmark;

}

// Customize the appearance of table view cells.
- (UITableViewCell *)tableView:(UITableView *)tableView cellForRowAtIndexPath:(NSIndexPath *)indexPath {

    NSString *CellIdentifier;
    CellIdentifier=[NSString stringWithFormat:@"cell %d",indexPath.row];


    UITableViewCell *cell = [tableView dequeueReusableCellWithIdentifier:CellIdentifier];    
    if (cell == nil) {

        cell = [[[UITableViewCell alloc] initWithStyle:UITableViewCellStyleSubtitle reuseIdentifier:CellIdentifier] autorelease];
        cell.detailTextLabel.lineBreakMode = UILineBreakModeWordWrap;
        cell.detailTextLabel.numberOfLines = 0;
        UIImageView* img = [[UIImageView alloc]initWithImage:[UIImage imageNamed:@"bgCELL3@2X-1"]];
        [cell setBackgroundView:img];
        [img release];
        count++;
    }

    NSMutableString *str=[[NSMutableString alloc]initWithString:[appDelegate.indexArray objectAtIndex:indexPath.section]];
    cell.textLabel.text =str ; 
    cell.textLabel.font = [UIFont fontWithName:@"Georgia" size:14.0]; 
    cell.textLabel.textColor = [UIColor brownColor];

    NSMutableString *notes=[[NSMutableString alloc]initWithString:[appDelegate.notesArray objectAtIndex:indexPath.section]];
    cell.detailTextLabel.text =notes;
    cell.detailTextLabel.font = [UIFont fontWithName:@"Georgia" size:14.0]; 
     cell.detailTextLabel.textColor = [UIColor darkGrayColor];
        [notes release];

    cell.backgroundColor=[UIColor clearColor];

    return cell;
}
</code></pre>

<p>The above code is foe UITableview cell</p>

<pre><code>- (void)tableView:(UITableView *)tableView didSelectRowAtIndexPath:(NSIndexPath *)indexPath {
    [tableView deselectRowAtIndexPath:indexPath animated:YES];
    NSArray* toReload = [NSArray arrayWithObjects: indexPath, self.selectedIndexPath, nil];
    self.selectedIndexPath = indexPath;
    if ([[tableView cellForRowAtIndexPath:indexPath] accessoryType] == UITableViewCellAccessoryCheckmark){

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

    else {

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

    }

}
</code></pre>

<p>the above is selection code</p>

<pre><code>- (IBAction)doUpload:(id)sender
{
    UploadView *uploadview = (UploadView *)self.view;
    if (uploadview != nil)
    {
        [m_owner uploadString:@""];
        //[self dismissModalViewControllerAnimated:YES];
    }

}
</code></pre>

<p>this is upload button code and i want to pass the multiple or single value from the uitableview in <code>[m_owner uploadString:here i want to pass the value];</code></p>

<p>EDIT:</p>

<pre><code>- (IBAction)doUpload:(id)sender
{
    NSMutableArray *rowsToBeDeleted = [[NSMutableArray alloc] init];
    NSMutableArray *indexPaths = [[NSMutableArray alloc] init];
    int index = 0;


    for (NSNumber *rowSelected in appDelegate.notesArray)
    {
        if ([rowSelected boolValue])
        {

            [rowsToBeDeleted addObject:[appDelegate.notesArray objectAtIndex:index]];
            NSUInteger pathSource[2] = {0, index};
            NSIndexPath *path = [NSIndexPath indexPathWithIndexes:pathSource length:2];

            [indexPaths addObject:path];
            UploadView *uploadview = (UploadView *)self.view;
            if (uploadview != nil)
            {
                [m_owner uploadString:path];
                //[self dismissModalViewControllerAnimated:YES];
            }


        }       
        index++;




}
</code></pre>
