12-21-2011 11:25 AM - edited 12-21-2011 11:42 AM
currently our UI is really programmed to only handle the screen of north direction. So we use the following code to set the acceptable direction:
However this setting only takes into effect when device is rotated after UI is launched. It doesn't seem setting the initial direction. If our UI is launched while phone is at landscape position, our UI would be launched at the landscape position, however it would flip to north direction if phone is rotated to north position. At this point, UI display is messed up. After that, it won’t change back to landscape direction even if phone is changed to landscape direction which makes sense since we set the acceptable direction to north.
Any idea how to set the intial direction? From my current search, there is no way to do so.
Solved! Go to Solution.
12-28-2011 08:04 AM
We didn't find a way to do this. We found out that it is easier to just let screen rotate freely instead of restrict it, so we changed our code to let it free rotate.