【发布时间】:2016-06-26 22:31:16
【问题描述】:
我正在开发一个应用程序,该应用程序允许用户将其应用程序的详细信息分享到 facebook。我有 UITableview,其中包含作者姓名列表,当您单击书名时,它会转到另一个 UITableView,它在每个 TableViewCell 中显示该作者的不同书籍。我可以在第二个 UITableView 中显示列表。
我想知道如何分享作者姓名、书名和图片(第二个表格视图详细信息)。
我正在显示执行此操作的代码..
所以当用户想要分享细节时,他必须点击作者UITableView的每个单元格中的UIButton。
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]
;
【问题讨论】:
标签: ios objective-c iphone xcode uitableview