swift 自定义UIView (xib) VC访问不了其内部属
2020-11-20 本文已影响0人
茗记西岭雪
错误写法!!!
var customView = Bundle.main.loadNibNamed("customView", owner: self, options: nil)?.last as! UIView
正确写法.. N C 了...
var customView = Bundle.main.loadNibNamed("customView", owner: self, options: nil)?.last as! customView