Call a class method from within that class

后端 未结 4 1427
孤城傲影
孤城傲影 2020-12-08 14:39

Is there a way to call a class method from another method within the same class?

For example:

+classMethodA{
}

+classMethodB{
    //I would like to          


        
4条回答
  •  囚心锁ツ
    2020-12-08 15:23

    Should be as simple as:

    [MyClass classMethodA];
    

    If that's not working, make sure you have the method signature defined in the class's interface. (Usually in a .h file)

提交回复
热议问题