//xib 加载View
override init(frame: CGRect) {
super.init(frame: frame)
let contentView = Bundle.main.loadNibNamed("JKLiveShareView", owner: self, options: nil)?.first as! UIView
contentView.frame = frame
self.addSubview(contentView)
UIApplication.shared.keyWindow?.addSubview(self)
}
required init?(coder aDecoder: NSCoder) {
fatalError("init(coder:) has not been implemented")
}
网友评论