Skip to content

这种方式缺点是方法名不能一样 #2

Description

@nowsilence

如果A协议和B协议的一个方法名相同,
struct objc_method_description *methods = protocol_copyMethodDescriptionList(
httpProtocol, YES, YES, &numberOfMethods);
for (unsigned int i = 0; i < numberOfMethods; i++) {
struct objc_method_description method = methods[i];
[_selToHandlerMap setValue:handler forKey:NSStringFromSelector(method.name)];
}

这个就有问题了

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions