我得到“无法加载任何Objective-C类信息,这将显着降低可用types信息的质量。” 在初始化此类的实例时在控制台中发出警告: @IBDesignable class SystemMessage: UIView{ @IBOutlet weak var lbl_message: UILabel! var view: UIView! override init(frame: CGRect) { super.init(frame: frame) setup() } required init?(coder aDecoder: NSCoder) { super.init(coder: aDecoder) setup() } func setup(){ view = loadViewFromNib() view.autoresizingMask = [UIViewAutoresizing.FlexibleWidth, UIViewAutoresizing.FlexibleHeight] addSubview(view) } func loadViewFromNib() -> UIView{ let bundle = NSBundle(forClass: self.dynamicType) let nib = UINib(nibName: […]