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
-(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
Post a Comment