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

前端 未结 3 1622
北荒
北荒 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:19

    You have to initialize all property before you call super.init in any init method

    So,change this before you call super.init()

    originView = sourceView //error here
    

    Exception:

    1. optional property
    2. property with default value
    3. lazy property

提交回复
热议问题