缺少IOS 8中MWPhotoBrowser方法声明的上下文

bir*_*age 6 xcode objective-c mwphotobrowser xcode6 ios8

移动到IOS 8和XCODE 6后,我遇到了MWPhoto库的问题.在PSTCollectionView类中发生错误.我想知道为什么它会让我Missing context for method declaration失误.您可以在下面找到错误的代码和图像.

#import <objc/runtime.h>
- (NSMethodSignature *)methodSignatureForSelector:(SEL)selector {
    NSMethodSignature *signature = [super methodSignatureForSelector:selector];
    if (!signature) {
        NSString *selString = NSStringFromSelector(selector);
        if ([selString hasPrefix:@"_"]) {
            SEL cleanedSelector = NSSelectorFromString([selString substringFromIndex:1]);
            signature = [super methodSignatureForSelector:cleanedSelector];
        }
    }
    return signature;
}

- (void)forwardInvocation:(NSInvocation *)invocation {
    NSString *selString = NSStringFromSelector([invocation selector]);
    if ([selString hasPrefix:@"_"]) {
        SEL cleanedSelector = NSSelectorFromString([selString substringFromIndex:1]);
        if ([self respondsToSelector:cleanedSelector]) {
            invocation.selector = cleanedSelector;
            [invocation invokeWithTarget:self];
        }
    }else {
        [super forwardInvocation:invocation];
    }
}

@end
Run Code Online (Sandbox Code Playgroud)

在此输入图像描述

Mat*_*eri 9

我从github更新PSTCollectionView,现在工作正常 https://github.com/steipete/PSTCollectionView