I have one temp.mm class which contains implementation for test class & extern "C" class. I am trying to call objective-c method in extern "c" class(i.e. testMethod & testMethod1). How can i call objective-c method in extern "C" class function?.
I am new to Objective-c
I mention the example code below..
import<test.h>
@implement test
-(void)testMethod
{
//code
}
-(NSString*)testMethod1:(NSString *)value
{
//code
return value;
}
void callMethod()
{
how to call testMethod & testMethod1 in this also?
}
@end
extern "C"
{
how to call testMethod & testMethod1?
}