私は、ユーザーが自分のアプリの詳細をFacebookに共有できるようにするアプリに取り組んでいます。UITableviewがあり、著者名のリストが含まれています。本の名前をクリックすると、別のUITableviewに移動しUITableView
、それぞれにその著者の異なる本が表示されますTableViewCell
。2番目にリストを表示することができますUITableView
。著者名、本名、画像(2番目のテーブルビューの詳細)を共有する方法を知りたいと思いました。それを行うコードを示しています..したがって、ユーザーが詳細を共有したい場合は、作成者のUIButton
すべてのセルにあるをタップする必要がありUITableView
ます。
didselectatindexpath
NSDictionary *selectedAuthor = nil;
NSArray *sectionArray=[mainIndexDictionary objectForKey:[allKeysArray objectAtIndex:indexPath.section]];
selectedAuthor = [sectionArray objectAtIndex:indexPath.row];
iPath=[[selectedAuthor objectForKey:@"SymptIndexID"] intValue];
NSLog(@"iPath - %d",iPath);
authortitleString=[[selectedAuthor objectForKey:@"authorIndexName"]stringByAppendingString:@" cure!"];
}
bookArray=[objDB customCellData:(NSInteger)iPath];
[self.view bringSubviewToFront:authorView];
[bookTableView scrollRectToVisible:CGRectMake(0.0, 0.0, 320.0,10.0) animated:NO];
[bookTableView reloadData]
;