MWPhotoBrowser icon indicating copy to clipboard operation
MWPhotoBrowser copied to clipboard

Xcode 7 compiler warning on MWPhotoBrower.m

Open peng90 opened this issue 11 years ago • 3 comments

Xcode 7 GM warning:

MWPhotoBrowser.m:550:1: Conflicting return type in implementation of 'supportedInterfaceOrientations': 'UIInterfaceOrientationMask' (aka 'enum UIInterfaceOrientationMask') vs 'NSUInteger' (aka 'unsigned long')

peng90 avatar Sep 14 '15 14:09 peng90

Hey,

Were you able to resolve this warning?

Aashays-whichit avatar Oct 18 '15 22:10 Aashays-whichit

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; }

Alkalouti avatar Nov 04 '15 18:11 Alkalouti

I tried Alkalouti's solution and the warning is gone.

peng90 avatar Nov 18 '15 17:11 peng90