objective c - iOS supportedInterfaceOrientations loop crashing -
i receiving error, , have no idea may causing it. happening in ios 8.2 on both iphone , ipad.
crashed: com.apple.main-thread exc_bad_access kern_protection_failure @ 0x00554ff4 raw 0 libobjc.a.dylib lookupimporforward + 3 4 libobjc.a.dylib -[nsobject respondstoselector:] + 38 5 uikit -[uiwindow _supportedinterfaceorientationsforrootviewcontroller] + 56 6 uikit -[_uifallbackpresentationviewcontroller supportedinterfaceorientations] + 60 7 uikit -[_uifallbackpresentationviewcontroller supportedinterfaceorientations] + 60 ... 510 uikit -[_uifallbackpresentationviewcontroller supportedinterfaceorientations] + 60
i read somewere should solve these kind of issues, did not work.
-(nsuinteger)application:(uiapplication *)application supportedinterfaceorientationsforwindow:(uiwindow *)window { if ( idiom == ipad ) { return uiinterfaceorientationmaskportrait | uiinterfaceorientationmaskportraitupsidedown; } else { return uiinterfaceorientationmaskportrait; } }
i ended contacting apple issue. according them related game center. apple changed things on , old way game center initialised generate random crashes. added game center manger game , these random crashes stopped.
Comments
Post a Comment