I am accessing instance method in a class method by using self in singleton class it shows error, but if I try to access instance method with parameter using self then its perfectly working, so basically i want to know the reason, why i am not able to access this.
like
-(void)someMethodA:(NSString *)paramA withParamB:(NSString *)paramB;
-(void)someMethodB;
if i try to use "someMethodA" with self then it works perfectly fine, but accessing "someMethodB" using self it gives error
+(void)someMethod
{
[self someMethodA:@"string" withParamB:@"string"]; works fine
[self someMethodB]; gives error
}