if you want to call some static objc method, you can make it as a class class method
@interface MyClas : NSObject + (int)doWork; @end
and call the method
[[MyClass class] performSelector:NSSelectorFromString(@"doWork")];
If you really want to work with a C-style function pointer, you can check dlsym ()
dlsym () returns the address of the code or location of the data specified in the string character with a null character. What libraries and nodes are searched depends on the handle parameter. If dlsym () is called with a special descriptor RTLD_DEFAULT, then all mach-o images in the process (except for loaded dlopen (xxx, RTLD_LOCAL)) are executed in the order in which they were loaded. This can be an expensive search and should be avoided.
so that you can use it to search for a base of function pointers on an asymmetry name
not sure why you want to do this, sometimes you can use the function table
typedef struct { char *name, void *fptr
source share