Instant bad access code Nib = 2

func loadViewFromNib() -> UIView { let bundle = NSBundle(forClass: self.dynamicType) let nib = UINib(nibName: "JobsView", bundle: bundle) let view = nib.instantiateWithOwner(self, options: nil)[0] as! UIView return view } 

I am trying to download the JobsView.xib file. However, this gives me poor access without additional information. How can I solve this error?

I associated the class with the file owner

+5
source share

Source: https://habr.com/ru/post/1232938/


All Articles