开发者

Messages without a matching method signature will be assume to return id

开发者 https://www.devze.com 2023-01-24 06:22 出处:网络
I\'m get开发者_运维问答ting a warning from the compiler : \"warning: \'NSSortDescriptor\' may not respond to \'+sortDescriptorWithKey:ascending:\' \"

I'm get开发者_运维问答ting a warning from the compiler :

"warning: 'NSSortDescriptor' may not respond to '+sortDescriptorWithKey:ascending:' "

...on this line of code:

id sortDescriptor=[NSSortDescriptor sortDescriptorWithKey:@"value" ascending:YES];

the compiler is also saying the following:

"Messages without a matching method signature will be assume to return id..."

+sortDescriptorWithKey:ascending:is a standard method of the platorm. It's not my own class.

I think this message usually appears when you don't declare the method in the interface but again, this is not my method.

Any ideas...


The sortDescriptorWithKey:ascending: method was introduced in iOS 4.0. So it sounds like you are compiling with a Base SDK set to something lower than 4.0.

0

精彩评论

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