I've got an instance of the Class
class, obtained by calling the class
method (example below). With that instance i'd like to call a class ( + ..
) method on that.
Callee
Class foo = [FooBar class];
SEL selector = @selector(doSomething:)
// Call somehow?
FooBar Definition
@implementation FooBar
+ (void)doSomething:(id)argument { .. }
@end
Is there any way of doing this?
Thanks.
Class foo = [FooBar class];
[foo doSomething];
The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.