ios - LandScape Orientation on iPhone Not Work Correctly -


recently develop application using swift in xcode 6.3.
application support iphone , ipad in landscape mode (both right , left)
have set

supported interface orientation

info.plist screenshot in info.plist landscaperight , left ipad,iphone , universal
in ipad work correctly in iphone 1 landscape mode work , dont change when rotating device
add appdelegate

func application(application: uiapplication, supportedinterfaceorientationsforwindow window: uiwindow?) -> int     {         return int(uiinterfaceorientationmask.landscape.rawvalue)     } 

but not work
, adding code root viewcontroller

override func shouldautorotate() -> bool     {         return true     }      override func supportedinterfaceorientations() -> int     {          return int(uiinterfaceorientationmask.landscaperight.rawvalue | uiinterfaceorientationmask.landscapeleft.rawvalue)     }      override func preferredinterfaceorientationforpresentation() -> uiinterfaceorientation     {         return uiinterfaceorientation.landscaperight     } 

but dont work either
body know whats going on in iphone?
tnx adv

  1. in project navigator select project
  2. tap target in target list
  3. select "general" tab

you find "landscape left" , "landscape right" checkboxes in deployment info section

enter image description here


Comments

Popular posts from this blog

android - MPAndroidChart - How to add Annotations or images to the chart -

javascript - Add class to another page attribute using URL id - Jquery -

firefox - Where is 'webgl.osmesalib' parameter? -