PageController覆盖其他控制器

时间:2013-12-30 23:30:36

标签: ios objective-c cocoa-touch uipageviewcontroller uipagecontrol

如何在页面控制器顶部显示其他控制器? 我已尝试以编程方式添加和手动使用界面构建器,但在这两种情况下页面控制器都显示在顶部

page controller

@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;
}

1 个答案:

答案 0 :(得分:0)

您的页面控制器是否已添加到导航控制器的视图中?您可能只想将其添加到相关视图控制器的视图中。