override func viewDidLoad() {
super.viewDidLoad()
// Do any additional setup after loading the view, typically from a nib.
let ctView = CTDisplayView()
view.addSubview(ctView)
ctView.backgroundColor = UIColor.gray
ctView.setX(view.x())
ctView.setY(view.y()+64)
ctView.setWidth(width: view.width())
let config:CTFrameParserConfig = CTFrameParserConfig()
config.width = ctView.width()
config.lineSpace = 10
let path = Bundle.main.path(forResource: "template", ofType: "json")
let data = CTFrameParser.parserTemplateFlie(path! as NSString , config: config)
ctView.data = data
ctView.setHeight(height: data.height)
}