//
//  CustomInspectionTableViewCell.m
//  patrol
//
//  Created by 曹云霄 on 2016/12/28.
//  Copyright © 2016年 上海勾芒科技有限公司. All rights reserved.
//

#import "CustomInspectionTableViewCell.h"

@implementation CustomInspectionTableViewCell


- (instancetype)initWithStyle:(UITableViewCellStyle)style reuseIdentifier:(NSString *)reuseIdentifier
{
    if (self = [super initWithStyle:style reuseIdentifier:reuseIdentifier]) {
        [self addChildViewController];
    }
    return self;
}

#pragma mark - 添加VI检查问题、答案控制器
- (void)addChildViewController
{
    self.inspectionVc = [InspectionAnswerViewController viewControllerWithStoryBoardType:STORYBOARD_TYPE_PATROLINSPECTRESULT];
    self.inspectionVc.view.frame = self.frame;
    [self.contentView addSubview:self.inspectionVc.view];
}

- (void)updateCell:(NSArray *)datasArray rowHeightArray:(NSArray *)rowHeightArray sectionHeightArray:(NSArray *)sectionHeightArray closedControlArray:(NSMutableArray *)closedControlArray
{
    self.inspectionVc.datasArray = datasArray;
    self.inspectionVc.sectionHeightArray = sectionHeightArray;
    self.inspectionVc.rowHeightArray = rowHeightArray;
    self.inspectionVc.closedControlArray = closedControlArray;
}



@end
