조정할 수있는 앱을 개발 중이며 헤더를 가져올 수없는 클래스를 하나 만들고 싶습니다. 클래스 이름, 클래스 메서드 및 인스턴스 메서드를 알고 있습니다. 어떻게 만들 수 있습니까? 매개 변수가있는 클래스 메서드에 있습니까?iOS에서 IMP를 사용하여 클래스 메서드 호출
Class class = objc_getClass("MMClass");
Method initMethod = class_getClassMethod(class,
@selector(do:for:));
IMP imp = method_getImplementation(initMethod);
id instance = imp(class,@selector(do:for:),@"do",@"ye");
이 권리인가 : 는
+(instancetype)do:(NSString*)string for:(NSString *)antherString;
내가 뭐하는 거지 것은 다음과 같습니다 클래스 메소드와 MMClass이라는 클래스를 말해?