Author Topic: NGUI loses orientation in iOS after a native share  (Read 3176 times)

_TR3SOR_

  • Newbie
  • *
  • Thank You
  • -Given: 0
  • -Receive: 0
  • Posts: 2
    • View Profile
NGUI loses orientation in iOS after a native share
« on: June 12, 2015, 09:41:21 AM »
Hello Everyone,

I have been facing a challenge in the last few days, and we cant find a way to work around it.

So the problem is the following, we are using the last version of NGUI and in iOS when we use the native social share.
The exact steps to reproduce are the following:

1) Lock your iOS project to a portrait orientation
2) Keep your device in a 45 degree orientation
2) Click on a button, and make a call to a native social sharing (ActivityViewController)
3) Click on more or other sharing option
4) After move the device completely to landscape
5) Dismiss the Social Sharing and come back to the App
6) At this Stage the NGUI las lost its initial lock portrait orientation and now is in landscape and it does not recover back to portrait after reaching this state.

Note: Some times it takes as few attempts until you can reproduce this issue, but it always happens.

Another thing to be aware, is that this does not happen when I make other native calls, like email, sms....it only happens in the social share.

I have also tried with a blank project using the new unity ui system, and this problem does not happen, only when using NGUI.

Does anyone else have encountered the same issue, i would like to discuss a way to work around it.

Best regards.




_TR3SOR_

  • Newbie
  • *
  • Thank You
  • -Given: 0
  • -Receive: 0
  • Posts: 2
    • View Profile
Re: NGUI loses orientation in iOS after a native share
« Reply #1 on: June 15, 2015, 02:50:12 AM »
Bump  ;)

ArenMook

  • Administrator
  • Hero Member
  • *****
  • Thank You
  • -Given: 337
  • -Receive: 1171
  • Posts: 22,128
  • Toronto, Canada
    • View Profile
Re: NGUI loses orientation in iOS after a native share
« Reply #2 on: June 16, 2015, 12:40:40 PM »
Sounds like Unity is simply not passing something to the rest of the application. NGUI has no knowledge of landscape vs portrait modes. It simply goes by Screen.width and Screen.height.