当用户点击按钮时,我正在从集合视图单元格加载弹出框。我已经设法让弹出框工作,但我不知道如何加载我在情节提要中设置的视图控制器。
这是让我弹出窗口的代码。如何让它从情节提要中加载视图控制器?
self.popoverContent = [[PopOverViewController alloc]initWithNibName:@"UpcomingCells" bundle:nil];
UIView *popoverView = [[UIView alloc]initWithFrame:CGRectMake(0, 0, 200, 300)];
[popoverView setBackgroundColor:[UIColor colorWithRed:224/256.0 green:45/256.0 blue:117/256.0 alpha:1.0]];
self.popoverContent.view = popoverView;
self.popoverContent.contentSizeForViewInPopover = CGSizeMake(200, 300);
self.contactPopover =[[UIPopoverController alloc] initWithContentViewController:self.popoverContent];
[self.contactPopover presentPopoverFromRect:self.remindButton.frame inView:self.view permittedArrowDirections:UIPopoverArrowDirectionUp animated:YES ];
[self.contactPopover setDelegate:self];