我创建了一个 UIPopoverController 并在单击 setReminder 按钮 popoverView 工作正常时将其添加到主视图控制器。如果我单击保存按钮,我想关闭 popupview 我该怎么办?
**mainView.m**
-(void)btnSetReminderTapped:(id)sender
{
setReminderView =[[setReminder alloc]initWithNibName:@"setReminder" bundle:[NSBundle mainBundle]];
setReminderView.delegate = self;
FPPopoverController *popover = [[FPPopoverController alloc] initWithViewController:setReminderView];
popover.tint = FPPopoverDefaultTint;
if(UI_USER_INTERFACE_IDIOM() == UIUserInterfaceIdiomPad)
{
popover.contentSize = CGSizeMake(400,400);
}
else {
popover.contentSize = CGSizeMake(320, 288);
}
popover.arrowDirection = FPPopoverArrowDirectionUp;
//sender is the UIButton view
[popover presentPopoverFromView:sender];
}
***setReminder.m***
- (IBAction) btnSaveTapped:(id) sender
{
}