摘要: 当使用 self 调用方法时,会从当前类的方法列表中开始找,如果没有,就从父类中再找;而当使用 super 时,则从父类的方法列表中开始找。然后调用父类的这个方法。Messages to self and superObjective-C provides two terms that can be used within a method definition to refer to the object that performs the method—self and super.Suppose, for example, that you define a reposition met 阅读全文
posted @ 2012-07-02 11:35 AlexFan 阅读(387) 评论(0) 推荐(0) 编辑