self & this 上下文

对象:指向对象的首地址;

函数:代表了函数运行的主要上下文;

内部:在类的内部使用。

self

Within the body of a class method, self refers to the class object itself. You might implement a factory method like this:

+ (id)myClass {
    return [[[self alloc] init] autorelease];
}
原文地址:https://www.cnblogs.com/feng9exe/p/7337020.html