Missing context for method declaration in iOS 8 for MWPhotoBrowser

I am having problems with the MWPhoto library after upgrading to IOS 8 and XCODE 6. An error occurs in the PSTCollectionView class. I am wondering why it returns me a Missing context for method declaration error. Below you can find the code and image for the error.

 #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 

enter image description here

+6
source share
1 answer

i update PSTCollectionView from github and now works great https://github.com/steipete/PSTCollectionView

+9
source

Source: https://habr.com/ru/post/975517/


All Articles