export class CameraView extends UIView {
constructor(){
super()
}
}
调用方法
let previewView = new CameraView()
编译报错:
index.swift:434:1: error: 'required' initializer 'init(coder:)' must be provided by subclass of 'UIView'
export class CameraView extends UIView {
constructor(){
super()
}
}
调用方法
let previewView = new CameraView()
编译报错:
index.swift:434:1: error: 'required' initializer 'init(coder:)' must be provided by subclass of 'UIView'
0 个回复