Swift用XIB自定义UIView怎么加载

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

你可能感兴趣的:(Swift用XIB自定义UIView怎么加载)