objective c - preferredInterfaceOrientationForPresentation must return a supported interface orientation in ios6 -


i creating universal app .when tried running application in ipad.the application getting crashed showing above error working in ios.could guys me out.below code

enter image description here

    -(bool)shouldautorotate {     if ([[uidevice currentdevice]userinterfaceidiom]==uiuserinterfaceidiompad)         return yes;     else         return no; } -(uiinterfaceorientation)preferredinterfaceorientationforpresentation {     if ([[uidevice currentdevice]userinterfaceidiom]==uiuserinterfaceidiompad) {         return (uiinterfaceorientationlandscapeleft | uiinterfaceorientationlandscaperight);     }     return uiinterfaceorientationportrait; } 


Comments

Popular posts from this blog

scala - 'wrong top statement declaration' when using slick in IntelliJ -

c# - DevExpress.Wpf.Grid.InfiniteGridSizeException was unhandled -

PySide and Qt Properties: Connecting signals from Python to QML -