CGRect visibleRect = CGRectIntersection(self.dayPlannerView.bounds, [self.dayPlannerView convertRect:view.bounds fromView:view]);
EventDetailViewController *objEDVC = [kStoryboard instantiateViewControllerWithIdentifier:@"EventDetailViewController"];
objEDVC.isForiPad = YES;
objEDVC.isForEvent = isForEvent;
objEDVC.eventID = strEventID;
objEDVC.aEventDct = dict;
if(!isForEvent)
{
objEDVC.preferredContentSize = CGSizeMake(320,300);
}
self.eventPopover = [[UIPopoverController alloc]initWithContentViewController:objEDVC];
self.eventPopover.delegate = self;
[self.eventPopover presentPopoverFromRect:visibleRect inView:self.dayPlannerView permittedArrowDirections:UIPopoverArrowDirectionAny animated:NO];
没有崩溃日志。我知道这不足以找到问题,但我发布了我的内容。
不明白该怎么做请帮助。
它在Xcode 7.2和Xcode 7.3中运行良好,但在Xcode 7.01中崩溃。