Error de vista de instancia de plumín
Intenté hacer la subclase @IBDesignable UIView después de esto (enlazar) tutorial. La primera vista personalizada va bien. Pero cuando trato de hacer otro, tengo errores. Primero tengofailed to update auto layout status: the agent crashed
yFailed to render instance of ...
. De alguna manera comencé a poder biuld y ejecutar proyectos con estos errores, pero luego recibo un nuevo error:EXC_BAD_ACCESS ...
en linealet view = nib.instantiateWithOwner(self, options: nil)[0] as! UIView
. Aquí hay un método completo:
func loadViewFromNib() -> UIView {
let bundle = NSBundle(forClass: self.dynamicType)
let nib = UINib(nibName: "advancedCellView", bundle: bundle)
let view = nib.instantiateWithOwner(self, options: nil)[0] as! UIView
return view
}
Con la primera UIView personalizada no hay problema. Yo uso el mismo código ...
¿Algunas ideas? Gracias