How to call a method through the object created by interface in Objective-C
Posted
by Cathy
on Stack Overflow
See other posts from Stack Overflow
or by Cathy
Published on 2010-02-15T10:34:35Z
Indexed on
2010/04/07
8:03 UTC
Read the original article
Hit count: 282
objective-c
Hi,
I need to call a method through the object created by the interface ie
id<MyProtocol>obj;
Now i have created this obj in my main class where i am not implementing the methods of this protocol but i need to access the method which is already implemented in someother class.I am now calling the method as follows
[obj load];
in my main class in the applicationDidFinishLaunching, but i not able to access the method? Pls do suggest me the correct way of calling the methods through protocols...
© Stack Overflow or respective owner