gltwy/LTScrollView

Terminating app due to uncaught exception 'NSInvalidArgumentException', reason: 'UICollectionView must be initialized with a non-nil layout parameter'

zhangylios opened this issue · 1 comments

您好,请问这个是什么问题导致的?Terminating app due to uncaught exception 'NSInvalidArgumentException', reason: 'UICollectionView must be initialized with a non-nil layout parameter'
版本: 0.2.0
奔溃代码:

  • (LTAdvancedManager *)managerView {
    if (_managerView == nil) {
    _managerView = [[LTAdvancedManager alloc] initWithFrame:CGRectMake(0, NavgationBarHeight, ScreenWidth, ScreenHeight-NavgationBarHeight-PortraitSafeAreaBottom) viewControllers:self.viewControllers titles:self.titles currentViewController:self layout:self.layout titleView:self.titleView headerViewHandle:^UIView * _Nonnull {

          return self.headView;
      }];
      
      /* 设置代理 监听滚动 */
      _managerView.delegate = self;
      
      /* 设置悬停位置 */
      // _managerView.hoverY = 64;
      
      /* 点击切换滚动过程动画 */
      // _managerView.isClickScrollAnimation = YES;
      
      /* 代码设置滚动到第几个位置 */
      // [_managerView scrollToIndexWithIndex:self.viewControllers.count - 1];
    

    }
    return _managerView;
    }

gltwy commented

@zhangylios UICollectionView must be initialized with a non-nil layout parameter