- (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:here i want to pass the value];
//[self dismissModalViewControllerAnimated:YES];
}
}
}
on my move code i want to pass the multiple values from UITableView to [m_owner uploadString:here i want to pass the value];but i am only ble to pas the string to GDoc how to convert or split the mutbleArray to the Uplod string?
My DidSelecetRowAtIndexPathe code looks like this
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];
I don’t understand very well what you want to do, but I think that you need the method to join the element of an array into a string, separated by commas or whatever you want.
The method
descriptionof NSArray (as documented here) returns a string that represents the contents of the array, formatted as a property list so it’s useless for your purposes (in fact it inserts newlines and the outer parentheses).