【问题标题】:Can't interact with UIView无法与 UIView 交互
【发布时间】:2014-01-12 12:35:17
【问题描述】:

我正在制作一个类似 Slide-To-Right Menu 的 Facebook。我的问题是我无法与后面的 UIView 交互。这是我的代码:

@property (strong, nonatomic) UIViewController *leftSidebarViewController;


self.leftSidebarViewController = [self.storyboard instantiateViewControllerWithIdentifier:@"left"];
[self.navigationController.view.superview insertSubview:self.leftSidebarViewController.view
                                           belowSubview:self.navigationController.view];
[self.leftSidebarViewController.view setUserInteractionEnabled:YES];

有人知道如何解决这个问题吗?

【问题讨论】:

标签: ios objective-c uiview uiviewcontroller uinavigationcontroller


【解决方案1】:

如果您决定自己构建,请参阅本教程: http://www.raywenderlich.com/32054/how-to-create-a-slide-out-navigation-like-facebook-and-path

它详细介绍了整个过程,应该可以帮助您解决问题。由于时间限制,我选择使用教程顶部提到的第三方库。

祝你好运!

【讨论】:

    猜你喜欢
    • 2020-05-26
    • 2020-08-09
    • 1970-01-01
    • 2022-11-06
    • 2010-12-14
    • 1970-01-01
    • 1970-01-01
    • 2013-05-19
    • 2015-03-06
    相关资源
    最近更新 更多