我正在使用带有导航栏的 uipopover 控制器。实际上,我希望在 popover 控制器内有导航栏。我尝试更改导航控制器的背景颜色,但它看起来不像我预期的那样。导航栏按钮似乎与弹出框角相连。请找到附加的屏幕截图。下面是我用来创建弹出框的代码。
WLViewBookmarkViewController * viewBookmarkViewController = [[WLViewBookmarkViewController alloc] initWithStyle:UITableViewStyleGrouped];
viewBookmarkViewController.delegate = self; UINavigationController *viewBookmarkNavController = [[UINavigationController alloc] initWithRootViewController:viewBookmarkViewController];
viewBookmarkNavController.navigationBar.backgroundColor = [UIColor colorWithRed:9/255.0 green:135/255.0 blue:46/255.0 alpha:1.0];
self.bookmarkPopoverController = [[UIPopoverController alloc] initWithContentViewController:viewBookmarkNavController];
[self.bookmarkPopoverController presentPopoverFromBarButtonItem:bookmarkButtonItem allowedArrowDirections:UIPopoverArrowDirectionDown|UIPopoverArrowDirectionUp 动画:YES];
Please suggest if there are any other way to achieve this.