MWPhotoBrowser
MWPhotoBrowser copied to clipboard
Xcode 7 compiler warning on MWPhotoBrower.m
Xcode 7 GM warning:
MWPhotoBrowser.m:550:1: Conflicting return type in implementation of 'supportedInterfaceOrientations': 'UIInterfaceOrientationMask' (aka 'enum UIInterfaceOrientationMask') vs 'NSUInteger' (aka 'unsigned long')
Hey,
Were you able to resolve this warning?
Hey all change it with this code #if __IPHONE_OS_VERSION_MAX_ALLOWED < __IPHONE_9_0 #define supportedInterfaceOrientationsReturnType NSUInteger #else #define supportedInterfaceOrientationsReturnType UIInterfaceOrientationMask #endif
- (supportedInterfaceOrientationsReturnType)supportedInterfaceOrientations { return UIInterfaceOrientationMaskAll; }
I tried Alkalouti's solution and the warning is gone.