1
當我試圖釋放UIPopoverController
的對象時,應用程序崩潰,消息EXC_BAD_ACCESS
。請參見下面的代碼片段:EXC_BAD_ACCESS當釋放UIPopoverController的對象時
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]
在此先感謝