Fixed compiler error in AFHTTPRequestOperation; #417
Casting (void *) block to (__bridge id). Required as of Xcode 4.4
This commit is contained in:
parent
2b2317907e
commit
109037831a
1 changed files with 1 additions and 1 deletions
|
|
@ -56,7 +56,7 @@ NSSet * AFContentTypesFromHTTPHeader(NSString *string) {
|
|||
|
||||
static void AFSwizzleClassMethodWithClassAndSelectorUsingBlock(Class klass, SEL selector, void *block) {
|
||||
Method originalMethod = class_getClassMethod(klass, selector);
|
||||
IMP implementation = imp_implementationWithBlock(block);
|
||||
IMP implementation = imp_implementationWithBlock((__bridge id)(block));
|
||||
class_replaceMethod(objc_getMetaClass([NSStringFromClass(klass) UTF8String]), selector, implementation, method_getTypeEncoding(originalMethod));
|
||||
}
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue