我在我的应用程序中使用TableView,在弹出查看窗口时单击tabel单元格时,表格单元格中的所有内容都应显示在弹出窗口中在观看所以PLZ建议我该怎么办?如何在ipad中显示弹出窗口单元格中的tableview单元格
我有一些示例代码,下面哪个是不工作..所以建议与代码我希望单元格中的所有内容显示在弹出视图。
- (void)tableView:(UITableView *)tableView didSelectRowAtIndexPath:(NSIndexPath *)indexPath
{
UIView *aView = [[UIView alloc] init];
UIPopoverController *popoverController = [[UIPopoverController alloc]
initWithContentViewController:aView];
popoverController.popoverContentSize = CGSizeMake(320, 416);
UITableViewCell *cell = [tableView cellForRowAtIndexPath:indexPath];
[popoverController presentPopoverFromRect:cell.bounds inView:cell.contentView
permittedArrowDirections:UIPopoverArrowDirectionAny animated:YES];
}
THX了很多它的工作... – crazy2431
@ 7KV7:+1伟大的答案..! :] –
@ParthBhatt:谢谢。 – visakh7