Swift用XIB自定义UIView怎么加载

let nib = UINib.init(nibName: "QuestionView", bundle: nil) let v = nib.instantiate(withOwner: nil, options: nil)[0] as! QuestionView

    推荐阅读