Заявки на IOS 7 работает нормально, но под прошивкой 8 я получил_viewControllerForSupportedInterfaceOrientationsWithDismissCheck исключения под прошивкой 8
[someObj _viewControllerForSupportedInterfaceOrientationsWithDismissCheck:]:
unrecognized selector sent to instance
когда я поворачиваю мой iPhone ..
Что может быть не так?
Стек след от тренажера:
*** First throw call stack:
(
...
1 libobjc.A.dylib 0x030ffa97 objc_exception_throw + 44
2 CoreFoundation 0x03c84a75 -[NSObject(NSObject) doesNotRecognizeSelector:] + 277
3 CoreFoundation 0x03bcd9c7 ___forwarding___ + 1047
4 CoreFoundation 0x03bcd58e _CF_forwarding_prep_0 + 14
5 UIKit 0x01b3ea90 -[UIWindow _shouldAutorotateToInterfaceOrientation:checkForDismissal:isRotationDisabled:] + 164
6 UIKit 0x01b3ef73 -[UIWindow _shouldAutorotateToInterfaceOrientation:] + 82
7 UIKit 0x01b4012d __57-[UIWindow _updateToInterfaceOrientation:duration:force:]_block_invoke + 69
9 UIKit 0x01b40988 -[UIWindow _updateInterfaceOrientationFromDeviceOrientation:] + 1397
10 UIKit 0x01b4040c -[UIWindow _updateInterfaceOrientationFromDeviceOrientationIfRotationEnabled:] + 93
11 UIKit 0x01b3feab -[UIWindow _handleDeviceOrientationChange:] + 122
12 Foundation 0x02cae929 __57-[NSNotificationCenter addObserver:selector:name:object:]_block_invoke + 40
13 CoreFoundation 0x03c47974 __CFNOTIFICATIONCENTER_IS_CALLING_OUT_TO_AN_OBSERVER__ + 20
...
20 GraphicsServices 0x049c5c8b _PurpleEventCallback + 765
22 CoreFoundation 0x03ba0a65 __CFRUNLOOP_IS_CALLING_OUT_TO_A_SOURCE1_PERFORM_FUNCTION__ + 53
23 CoreFoundation 0x03ba09ce __CFRunLoopDoSource1 + 510
.......
)
libc++abi.dylib: terminating with uncaught exception of type NSException
duplicate? http://stackoverflow.com/questions/26100437 – tidwall
Я пробовал, но это не помогло – gmlvsv
Можете ли вы добавить код, вызывающий этот селектор? – tidwall