| 1234567891011121314151617181920212223242526272829303132333435363738394041424344454647 | ////  ASPayFailedViewController.m//  Asteria////  Created by xingyu on 2024/5/16.//#import "ASPayFailedViewController.h"#import "ASPayFinishHeadView.h"@interface ASPayFailedViewController ()@property (nonatomic, strong) UIScrollView *scrollView;@end@implementation ASPayFailedViewController- (void)viewDidLoad {    [super viewDidLoad];    self.statusBgV.backgroundColor = Col_FFF;    self.customNavBar.backgroundColor = Col_FFF;        _scrollView = [[UIScrollView alloc] init];    [self.view addSubview:_scrollView];    [_scrollView mas_makeConstraints:^(MASConstraintMaker *make) {        make.top.equalTo(self.customNavBar.mas_bottom);        make.leading.trailing.bottom.equalTo(self.view);    }];        ASPayFinishHeadView *payFailedView = [[ASPayFinishHeadView alloc] initWithFrame:CGRectMake(0, 0, KScreenWidth, 100) status:0 desc:@""];    [self.scrollView addSubview:payFailedView];    K_WEAK_SELF;    payFailedView.clickBlock = ^(int type) {//        K_STRONG_SELF;    };        float viewHeight = [payFailedView getViewHeight];    payFailedView.frame = CGRectMake(0, 0, KScreenWidth, viewHeight);        self.scrollView.contentSize = CGSizeMake(KScreenWidth, viewHeight);        }@end
 |