开发者

Obj-C, Puzzled by this xcode warning, warning: 'BNColor' may not respond to '+beInit'?

开发者 https://www.devze.com 2023-02-06 10:44 出处:网络
I开发者_开发百科\'ve getting this warning warning: \'BNColor\' may not respond to \'+beInit\' I\'m not sure why.

I开发者_开发百科've getting this warning warning: 'BNColor' may not respond to '+beInit' I'm not sure why.

Any ideas ?

Obj-C, Puzzled by this xcode warning, warning: 'BNColor' may not respond to '+beInit'?


Have you included/imported NSObject+Be.h in BNColor.m?

Also, methods whose names contain init and copy should return objects owned by the caller, i.e., don’t autorelease them.


Apparently you are using a third party library that exposes an BNColor class and you are trying to send the class object, BNColor, the beInit class method, which the BNColor class apparently doesn't respond to (that is, beInit is not defined as a class method of BNColor).

0

精彩评论

暂无评论...
验证码 换一张
取 消