Class methods and self keyword in objective-c [duplicate]
Possible Duplicate:
“Invalid use of 'this' in non-member function” in objective-c context?
If I use the keyword self inside a class method:
+ (id) myMetho
{
self ...
}
Does it refer to the class or to the current instance ?
In short, it represents the class. For a longer answer, have a look here
self just means "the class you are in"
精彩评论