我正在使用FPPopover库来显示popover。它在使用模型呈现时工作但它在推动的viewcontroller中不起作用。 这里使用代码:
GettingDataForPOPOver *popoverContent = [self.storyboard instantiateViewControllerWithIdentifier:@"POPOVER"];
popoverContent.delegate = self;
popoverContent.Tag = 0;
popover = [[FPPopoverController alloc] initWithViewController:popoverContent];
popover.contentSize = CGSizeMake(200,210);
popover.border = NO;
popover.tint = FPPopoverWhiteTint;
popover.delegate = self;
//[popover.navigationController pushViewController:popover animated:NO];
[popover presentPopoverFromView:okButton];
这个也不起作用:
GettingDataForPOPOver *popoverContent = [self.storyboard instantiateViewControllerWithIdentifier:@"POPOVER"];
UINavigationController *nc = [[UINavigationController alloc] initWithRootViewController:popoverContent];
//popoverContent.delegate = self;
popoverContent.Tag = 0;
FPPopoverController *popoverr = [[FPPopoverController alloc] initWithViewController:nc];
popoverr.delegate = self;
popoverr.tint = FPPopoverDefaultTint;
popoverr.contentSize = CGSizeMake(200,210);
[popoverr presentPopoverFromView:okButton];
CGRect nc_bar_frame = nc.navigationBar.frame;
nc_bar_frame.origin.y = 0;
nc.navigationBar.frame = nc_bar_frame;