に文字列を渡します。このコードでは、私はこのコード NSStringの* localStringValueを持ってDidSelectRowAtIndexPathからボタンクリックアクション
- (void)tableView:(UITableView *)tableView didSelectRowAtIndexPath:(NSIndexPath *)indexPath {
[tableView deselectRowAtIndexPath:indexPath animated:YES];
localStringValue = [m_textfield cellForRowAtIndexPath:indexPath].textLabel.text;
localStringValue = [m_textfield cellForRowAtIndexPath:indexPath].detailTextLabel.text;
NSArray* toReload = [NSArray arrayWithObjects: indexPath, self.selectedIndexPath, nil];
self.selectedIndexPath = indexPath;
if ([[tableView cellForRowAtIndexPath:indexPath] accessoryType] == UITableViewCellAccessoryCheckmark){
UploadView *uploadview = (UploadView *)self.view;
if (uploadview != nil)
{
[m_owner uploadString:localStringValue];
//[self dismissModalViewControllerAnimated:YES];
}
[[m_textfield cellForRowAtIndexPath:indexPath] setAccessoryType:UITableViewCellAccessoryNone];
}
else {
[[tableView cellForRowAtIndexPath:indexPath] setAccessoryType:UITableViewCellAccessoryCheckmark];
}
}
チェックマークがthere.localStringValueは、テーブルビューのcell.Everyのものが、この時に正常に動作中の値は私の必要性をpoint.But含まれている場合、私はセルをタップすると、ドキュメントをGoogleにlocalStringValueを同期しています私はどのように[m_owner uploadString:localstringvalue];
でlocalstringvalueを通過したいユーザーは、私がlocalStringValueのすべての値をしたい複数の行を選択し、このコードを
- (IBAction)doUpload:(id)sender
{
UploadView *uploadview = (UploadView *)self.view;
if (uploadview != nil)
{
[m_owner uploadString:@""];
//[self dismissModalViewControllerAnimated:YES];
}
}
これを渡すと意味ボタンをクリックし、この値を渡したいれますこれをする?ありがとうございます。
それはあなたのコードで説明することができ、これは私のエラーと宣言されていないlocalstring – ICoder