Announcement

Collapse
No announcement yet.

[UDK-2014-Feb] Portrait orientation is broken [SOLVED]

Collapse
X
 
  • Filter
  • Time
  • Show
Clear All
new posts

    [UDK-2014-Feb] Portrait orientation is broken [SOLVED]

    SOLUTION FOUND!

    Just use UIInterfaceOrientationLandscapePortrait instead of UIInterfaceOrientationPortrait in UIInterfaceOrientation block.

    Code:
    <key>UIInterfaceOrientation</key>
    <string>UIInterfaceOrientationLandscapePortrait</string>
    --------

    I've just updated UDK version on my project and got this problem. I've checked that

    Code:
    <key>UIInterfaceOrientation</key>
    <string>UIInterfaceOrientationPortrait</string>
    <key>UISupportedInterfaceOrientations</key>
    <array>
    	<string>UIInterfaceOrientationPortrait</string>
    	<string>UIInterfaceOrientationPortraitUpsideDown</string>
    </array>
    is apllied in .plist of binary, and I've found that it changes only static "loading" screen (which is shown before startup video). Unfortunately, it does no effect for game.

    It's a very unsettling problem in case that my game is strongly portrait-orientation-related

    #2
    Yes, same issue here !

    In the package the info.plist contains the orientation key but it doesn't work

    i hope epic will find a quick fix on that !

    Comment


      #3
      This maybe related:
      http://forums.epicgames.com/threads/...feb-2014-build

      Comment


        #4
        Hey Epic, any update or feedback on that ? After a long wait for new release of the engine i'm still stuck and can't release an update of my game, please, help us !

        Comment


          #5
          Looking into this!

          Comment


            #6
            Thanks, nice to hear that!

            Comment


              #7
              Originally posted by crowl View Post
              Looking into this!
              Any luck with a fix for this issue? This is the only thing holding us back from submitting our app to the Apple

              Comment


                #8
                I've found a solution. Just use UIInterfaceOrientationLandscapePortrait instead of UIInterfaceOrientationPortrait in UIInterfaceOrientation block.

                Code:
                <key>UIInterfaceOrientation</key>
                <string>UIInterfaceOrientationLandscapePortrait</string>

                Comment


                  #9
                  I thought this would somehow help with the wrong iAd banner orientation in landscape,
                  but it's still broken:
                  http://forums.epicgames.com/threads/...feb-2014-build

                  Comment


                    #10
                    Originally posted by ufna View Post
                    I've found a solution. Just use UIInterfaceOrientationLandscapePortrait instead of UIInterfaceOrientationPortrait in UIInterfaceOrientation block.

                    Code:
                    <key>UIInterfaceOrientation</key>
                    <string>UIInterfaceOrientationLandscapePortrait</string>
                    You sir, are a LEGEND!!! THANKS!!

                    Comment


                      #11
                      So what made you try 'UIInterfaceOrientationLandscapePortrait'? That doesn't even appear to be a valid value. I wonder if it is working because it has been broken by an invalid configuration and the default value is being used.

                      https://developer.apple.com/library/...aceOrientation

                      "
                      Constants
                      UIInterfaceOrientationPortrait
                      The device is in portrait mode, with the device held upright and the home button on the bottom.
                      Available in iOS 2.0 and later.
                      Declared in UIApplication.h.
                      UIInterfaceOrientationPortraitUpsideDown
                      The device is in portrait mode but upside down, with the device held upright and the home button at the top.
                      Available in iOS 2.0 and later.
                      Declared in UIApplication.h.
                      UIInterfaceOrientationLandscapeLeft
                      The device is in landscape mode, with the device held upright and the home button on the left side.
                      Available in iOS 2.0 and later.
                      Declared in UIApplication.h.
                      UIInterfaceOrientationLandscapeRight
                      The device is in landscape mode, with the device held upright and the home button on the right side.
                      Available in iOS 2.0 and later.
                      Declared in UIApplication.h.
                      "

                      What would happen if you changed it to ...

                      <key>UIInterfaceOrientation</key>
                      <string>asdfasdflkjaqwpomgoreiqyrewepicwtfpqore</string>

                      Comment


                        #12
                        Hey, I've tried this fix, but the location of the Ad Banner on the screen stayed the same. Its the Iphone-Info.plist file, right? My game is in Landscape. Am I doing something wrong?

                        Thanks.

                        ...Wait, never mind, I read too quickly. There currently isn't a fix for Landscape mode, is there?

                        Comment


                          #13
                          Originally posted by TwilightAngel View Post
                          Hey, I've tried this fix, but the location of the Ad Banner on the screen stayed the same. Its the Iphone-Info.plist file, right? My game is in Landscape. Am I doing something wrong?
                          iAd Banner location is totally controlled by native code, so we can't get the solution without Epics Orientation bug is simple typo in native code too, but it's controlled by external variable in .plist, so it was solved.

                          Comment

                          Working...
                          X