当我试图释放的对象时UIPopoverController
,应用程序会因消息而崩溃EXC_BAD_ACCESS
。请参见下面的代码片段:
UITableViewCell *tblcell=(UITableViewCell*)[heatsv viewWithTag:500+sender.tag];
ResourceDetail *objRDPopup=[[ResourceDetail alloc] init];
UIPopoverController *aPopover1 = [[UIPopoverController alloc] initWithContentViewController:objRDPopup];
[aPopover1 setPopoverContentSize:CGSizeMake(300, 195)];
[aPopover1 presentPopoverFromRect:sender.frame inView:tblcell permittedArrowDirections:UIPopoverArrowDirectionAny animated:YES];
[objRDPopup release];
[aPopover1 release]
提前致谢