I got this error because I mistyped the Link to link.
So two rules that Xcode determine a method is an init method:
- return
instancetype
or id
- the method name should be a capital letter followed by
init
.
For example:
1
| - (intancetype)initWithImage:(UIImage *)image;
|