//
//  testVC.m
//  Open
//
//  Created by qinxuyang on 2021/12/3.
//  Copyright © 2021 QXY. All rights reserved.
//

#import "testVC.h"
//#import <LCDSDK/LCDSDK.h>
@interface testVC ()
@property (nonatomic, strong) UIView *nav;
@end

@implementation testVC

- (void)viewDidLoad {
    [super viewDidLoad];
    // Do any additional setup after loading the view from its nib.
}

/*
#pragma mark - Navigation

// In a storyboard-based application, you will often want to do a little preparation before navigation
- (void)prepareForSegue:(UIStoryboardSegue *)segue sender:(id)sender {
    // Get the new view controller using [segue destinationViewController].
    // Pass the selected object to the new view controller.
}
*/
//- (IBAction)ClickBtn:(UIButton *)sender {
//    LCDGridVideoViewController *gridVC = [[LCDGridVideoViewController alloc]initWithConfigBuilder:^(LCDGridVideoVCConfig * _Nonnull config) {
//        config.contentInset = UIEdgeInsetsMake(NAV_BAR_HEIGHT, 0, 0, 0);
////        config.bu_grid_slotID = LCS_BU_Grid_slotID; // 穿山甲宫格代码位ID，需要到穿山甲平台申请
////        config.bu_video_slotID = LCS_BU_Draw_slotID; // 穿山甲视频代码位ID，需要到穿山甲平台申请
////        config.contentInset = UIEdgeInsetsMake(LCS_stautsBarHeight, 0, 0, 0); // 修改scrollView偏移量的示例
//    }];
//    gridVC.modalPresentationStyle = UIModalPresentationFullScreen;
//    [gridVC.view addSubview:[self configNavWithTitle:@"视频" RelatedVC:gridVC]];
//    [self presentViewController:gridVC animated:YES completion:^{
//        MJRefreshNormalHeader *header = [MJRefreshNormalHeader headerWithRefreshingBlock:^{
//            [gridVC refreshDataWithCompletion:^(NSError * _Nullable error) {
//                [gridVC.dataView.mj_header endRefreshing];
//            }];
//        }];
//        header.stateLabel.textColor = UIColor.blackColor;
//        header.lastUpdatedTimeLabel.hidden = YES;
//        gridVC.dataView.mj_header = header;
//    }];
//}
//- (IBAction)xiwnen:(UIButton *)sender {
//    LCDFeedExploreViewController *feedExplorVC = [[LCDFeedExploreViewController alloc] initWithConfigBuilder:^(LCDFeedExploreVCConfig * _Nonnull config) {
//        config.contentInset = UIEdgeInsetsMake(NAV_BAR_HEIGHT, 0, 0, 0);
////        config.viewSize = CGSizeMake(ScreenWidth, ScreenHeight - NAV_BAR_HEIGHT);
//        // 下面都是可选配置项
////        config.delegate = self;
////        config.adDelegate = self;
////        if (containerVCType == LCSCellContainerVCTypeChannel) {
////            config.contentInset = UIEdgeInsetsZero;
////        }
//    }];
//    feedExplorVC.modalPresentationStyle = UIModalPresentationFullScreen;
//    [feedExplorVC.view addSubview:[self configNavWithTitle:@"新闻" RelatedVC:feedExplorVC]];
//    [self presentViewController:feedExplorVC animated:YES completion:^{
//
//    }];
//}
//- (UIView *)configNavWithTitle:(NSString *)Title  RelatedVC:(UIViewController *)relatedVC
//{
//     UIView*nav = [[UIView alloc]initWithFrame:CGRectMake(0, 0, ScreenWidth, cl_kNavigationBarHeight)];
//    nav.backgroundColor = [UIColor colorWithHex:0x086ed7];
//    self.nav = nav;
//
//    UIButton*backBtn = [UIButton buttonWithType:UIButtonTypeCustom];
//    backBtn.relatedViewController = relatedVC;
//    [backBtn setTitle:@"返回" forState:UIControlStateNormal];
//    [backBtn setTitleColor:[UIColor whiteColor] forState:UIControlStateNormal];
//    [backBtn setImage:[UIImage imageNamed:@"返回"] forState:UIControlStateNormal];
//    [backBtn layoutButtonWithEdgeInsetsStyle:GLButtonEdgeInsetsStyleLeft imageTitleSpace:4];
//    [backBtn addTarget:self action:@selector(didClickCloseButton:) forControlEvents:UIControlEventTouchUpInside];
//    [nav addSubview:backBtn];
//
//    [backBtn mas_makeConstraints:^(MASConstraintMaker *make) {
//        make.left.offset(0);
//        make.top.offset(cl_kStatusBarHeight);
//        make.width.offset(80);
//        make.height.offset(44);
//    }];
//
//    UILabel*titleLabel = [[UILabel alloc]init];
//    titleLabel.textColor = [UIColor whiteColor];
//    titleLabel.textAlignment = NSTextAlignmentCenter;
//    titleLabel.text = Title;
//    titleLabel.font = [UIFont boldSystemFontOfSize:17];
//    [nav addSubview:titleLabel];
//
//    [titleLabel mas_makeConstraints:^(MASConstraintMaker *make) {
//        make.centerX.offset(0);
//        make.top.offset(cl_kStatusBarHeight);
//        make.width.offset(80);
//        make.height.offset(44);
//    }];
//    return nav;
//}
//- (void)didClickCloseButton:(UIButton *)button {
//    [button.relatedViewController dismissViewControllerAnimated:YES completion:nil];
//}
@end
