第一步

//下层的scroolView
self.baseScrollView = [[UIScrollView alloc] init];
self.baseScrollView.delegate = self;
self.baseScrollView.frame = CGRectMake(0, 0, SCREEN_WIDTH, SCREEN_HEIGHT);
self.baseScrollView.scrollEnabled = YES;
self.baseScrollView.backgroundColor = [UIColor colorWithHexString:WSFConstants_Color_BackgoundMainColor];
UIGestureRecognizer *gestur = [[UIGestureRecognizer alloc]init];
gestur.delegate = self;
[self.baseScrollView addGestureRecognizer:gestur];
[self.view addSubview: self.baseScrollView];
//contentView UIView *contentView = [[UIView alloc]init]; [self.baseScrollView addSubview:contentView]; [contentView mas_makeConstraints:^(MASConstraintMaker *make) { make.edges.equalTo(self.baseScrollView); make.width.equalTo(self.baseScrollView); }];

第二步

//content
[contentView mas_makeConstraints:^(MASConstraintMaker *make) {
    make.bottom.mas_equalTo(telephoneBtn.mas_bottom).offset(70);
}];

第三步

<UIScrollViewDelegate>

 

相关文章:

  • 2022-12-23
  • 2021-08-18
  • 2022-12-23
  • 2022-12-23
  • 2022-12-23
  • 2022-12-23
  • 2021-08-11
  • 2021-06-12
猜你喜欢
  • 2021-06-26
  • 2022-12-23
  • 2021-06-18
  • 2022-12-23
  • 2022-12-23
相关资源
相似解决方案