Minor formatting
This commit is contained in:
parent
25620fe839
commit
3ee1fefeac
1 changed files with 2 additions and 1 deletions
|
|
@ -56,8 +56,9 @@ NSSet * AFContentTypesFromHTTPHeader(NSString *string) {
|
||||||
|
|
||||||
static void AFSwizzleClassMethodWithImplementation(Class klass, SEL selector, IMP implementation) {
|
static void AFSwizzleClassMethodWithImplementation(Class klass, SEL selector, IMP implementation) {
|
||||||
Method originalMethod = class_getClassMethod(klass, selector);
|
Method originalMethod = class_getClassMethod(klass, selector);
|
||||||
if (method_getImplementation(originalMethod) != implementation)
|
if (method_getImplementation(originalMethod) != implementation) {
|
||||||
class_replaceMethod(objc_getMetaClass([NSStringFromClass(klass) UTF8String]), selector, implementation, method_getTypeEncoding(originalMethod));
|
class_replaceMethod(objc_getMetaClass([NSStringFromClass(klass) UTF8String]), selector, implementation, method_getTypeEncoding(originalMethod));
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
static NSString * AFStringFromIndexSet(NSIndexSet *indexSet) {
|
static NSString * AFStringFromIndexSet(NSIndexSet *indexSet) {
|
||||||
|
|
|
||||||
Loading…
Add table
Reference in a new issue