Warning: file_get_contents(/data/phpspider/zhask/data//catemap/7/rust/4.json): failed to open stream: No such file or directory in /data/phpspider/zhask/libs/function.php on line 167

Warning: Invalid argument supplied for foreach() in /data/phpspider/zhask/libs/tag.function.php on line 1116

Notice: Undefined index: in /data/phpspider/zhask/libs/function.php on line 180

Warning: array_chunk() expects parameter 1 to be array, null given in /data/phpspider/zhask/libs/function.php on line 181

Warning: file_get_contents(/data/phpspider/zhask/data//catemap/9/ruby-on-rails-3/4.json): failed to open stream: No such file or directory in /data/phpspider/zhask/libs/function.php on line 167

Warning: Invalid argument supplied for foreach() in /data/phpspider/zhask/libs/tag.function.php on line 1116

Notice: Undefined index: in /data/phpspider/zhask/libs/function.php on line 180

Warning: array_chunk() expects parameter 1 to be array, null given in /data/phpspider/zhask/libs/function.php on line 181
Objective c JASidePanel:需要永久维护左侧的菜单_Objective C - Fatal编程技术网

Objective c JASidePanel:需要永久维护左侧的菜单

Objective c JASidePanel:需要永久维护左侧的菜单,objective-c,Objective C,我在研究JASidePanel堆叠控制器 但我想知道是否有可能永久性地在屏幕左侧维护一个菜单,而不依赖JASidePanel 为此,我尝试将JASidePanelController作为其他UIViewController的子视图插入,如下所示: - (BOOL)application:(UIApplication *)application didFinishLaunchingWithOptions:(NSDictionary *)launchOptions { self.windo

我在研究JASidePanel堆叠控制器

但我想知道是否有可能永久性地在屏幕左侧维护一个菜单,而不依赖JASidePanel

为此,我尝试将JASidePanelController作为其他UIViewController的子视图插入,如下所示:

- (BOOL)application:(UIApplication *)application didFinishLaunchingWithOptions:(NSDictionary *)launchOptions {

    self.window = [[UIWindow alloc] initWithFrame:[[UIScreen mainScreen] bounds]];

    // My part ---------------------
    UIViewController *rootViewController = [ [ UIViewController alloc ] init ];
    UIView *rootView = [ [ UIView alloc] initWithFrame:CGRectZero ];
    rootView.autoresizingMask = UIViewAutoresizingFlexibleWidth + UIViewAutoresizingFlexibleHeight;
    [rootView setBackgroundColor:[UIColor yellowColor]];

    rootViewController.view = rootView;
    // ---------------------

    JASidePanelController *sidePanelController =[[JASidePanelController alloc] init];
    sidePanelController.leftFixedWidth = 260;

    self.viewController = sidePanelController;
    self.viewController.shouldDelegateAutorotateToVisiblePanel = NO;

    self.viewController.leftPanel = [[JALeftViewController alloc] init];
    self.viewController.centerPanel = [[UINavigationController alloc] initWithRootViewController:[[JACenterViewController alloc] init]];
    self.viewController.rightPanel = [[JARightViewController alloc] init];

    self.viewController.view.frame = CGRectMake(61, 0, self.viewController.view.frame.size.width, self.viewController.view.frame.size.height );
    [ rootView addSubview:self.viewController.view ];

    // My part ---------------------
    self.window.rootViewController = rootViewController;
    // ---------------------
    [self.window makeKeyAndVisible];
    return YES;
}
它起作用了,但我并不完全满意

事实上,当我向左滑动手指以显示右侧面板时,中间面板无法正确向左移动,并以黄色覆盖我的个人菜单

因此,右侧面板不完全可见,黄色的“我的菜单”不可见

请看一下我的插图,了解我想做什么

有人知道怎么做吗

非常感谢每提前