“Convenience initializer missing a 'self' call to another initializer”

后端 未结 2 2101
旧时难觅i
旧时难觅i 2021-02-04 03:26

I\'m trying convert my code to iOS 8 project, and i need some explanation on how to fix this warning: \"Convenience initializer missing a \'self\' call to another initiali

2条回答
  •  时光取名叫无心
    2021-02-04 03:47

    Just an addendum to what @CodaFi is saying:

    • One slice of Apple docs I found on designated initializers is here.
    • I've answered a question on how to suppress these warnings here, with a couple more options. I particularly like the precompiled header method (#2), because it reminds you to fix it.

提交回复
热议问题