如何在页面控制器顶部显示其他控制器? 我已尝试以编程方式添加和手动使用界面构建器,但在这两种情况下页面控制器都显示在顶部
@implementation AppDelegate
- (BOOL)application:(UIApplication *)application didFinishLaunchingWithOptions:(NSDictionary *)launchOptions
{
UIPageControl *pageControl = [UIPageControl appearance];
pageControl.pageIndicatorTintColor = [UIColor lightGrayColor];
pageControl.currentPageIndicatorTintColor = [UIColor purpleColor];
pageControl.backgroundColor = [UIColor darkGrayColor];
UIButton *button = [UIButton appearance];
[button setTitle:@"ADD" forState:UIControlStateNormal];
return YES;
}
答案 0 :(得分:0)
您的页面控制器是否已添加到导航控制器的视图中?您可能只想将其添加到相关视图控制器的视图中。