0
テーブルビューのセルから複数の値を含む文字列を複数の値または単一の値にすることができます。これらの値をgoogledocにエクスポートする必要があります。私はこれを望んでいない、複数の値を継続している文字列を分割し、複数の値の文字列であればそれをseperatilyにアップロードする必要があります。アップロード用iPhoneのSDHで文字列を1つずつ分割する
私のコードは
- (void)tableView:(UITableView *)tableView didSelectRowAtIndexPath:(NSIndexPath *)indexPath {
[tableView deselectRowAtIndexPath:indexPath animated:YES];
NSUInteger row = [indexPath row];
selected[row] = !selected[row];
UITableViewCell *cell = [tableView cellForRowAtIndexPath:indexPath];
cell.accessoryType = selected[row] ? UITableViewCellAccessoryCheckmark : UITableViewCellAccessoryNone;
[tableView deselectRowAtIndexPath:indexPath animated:YES];
}
これを行うにはどのように、私を助けてください、私のtableviewcodeのdidSelectRowAtIndexPath
- (IBAction)doUpload:(id)sender
{
NSMutableString *str = [[NSMutableString alloc] initWithString:@"NOTES:"];
for (int i = 0; i<[appDelegate.notesArray count]; i++) {
// UPLOAD STRINGS HERE
if (selected[i])
[str appendFormat:@"%@ ,",[appDelegate.notesArray objectAtIndex:i]];
}
UploadView *uploadview = (UploadView *)self.view;
if (uploadview != nil)
{
[m_owner uploadString:str];
}
}
です。 ありがとうございます。ただ、アップロードが前に追加します
thnks、先生、私は文字列を分割するために知っているが、それはでstr内のすべての文字列をアップロードone.nowによってseparately.meansをアップロードする必要がありますsingle upload ' – ICoder
sir "aNote Lite"は私が参考に使ったアプリケーションです。このアプリでは、ネットはtableview contensノートで複数選択した後、グーグルドックと同期しています。 – ICoder
私はsir.thanksを確認させてください – ICoder