Property 'self.*' not initialized at super.init call

前端 未结 3 1604
北荒
北荒 2020-12-09 16:50

I just updated my xcode to 6.3.1. The problem is I got this weird error message since Swift 1.2. I got this kind of error message

/Users/MNurdin/Documents/iO         


        
3条回答
  •  温柔的废话
    2020-12-09 17:33

    Make your originView nullable by

    var originView: UIView?. 
    

    If your originView is not nullable you have to provide a default value before calling

    super.init().
    

提交回复
热议问题