NOT ANY modification made to the gideros project and the player's Xcode project setting. If run it directly by exporting the Xcode project, has the same issue. Change back this modification can fix the issue on the export project but when run it in the player the issue still exist. - (NSUInteger)supportedInterfaceOrientations { return gdr_supportedInterfaceOrientations(); }
I have been informed that this bug may appear when you have landscape app but you hold your ios device in portrait while launching (and vice versa) if you hold it in the same orientation your app is defined, it is ok.
Hi @Xman, we spotted an issue in the code that may be the cause of your problem. BTW I am experiencing something similar too myself. Next release will fix it. Hopefully...
I have been informed that this bug may appear when you have landscape app but you hold your ios device in portrait while launching (and vice versa) if you hold it in the same orientation your app is defined, it is ok.
change these code to the original fix this bug. I guess this change is made for avoiding error if the supported orientation setting in Xcode is wrong,but this change really cause some problem.
Comments
It seems like it is squished by swapped dimensions.
What project settings do you have (scaling, orientation, etc)
Do you have auto rotation enabled?
Does it change when you rotate the screen?
And what xcode settings do you have (what allowed orientations)?
Something like this could happen when Gideros project has one orientation, like landscape, but xcode settings do not allow it.
Or xcode allows all orientations and autorotation is enabled.
Then I think stuff like that could happen
If run it directly by exporting the Xcode project, has the same issue.
Change back this modification can fix the issue on the export project but when run it in the player the issue still exist.
- (NSUInteger)supportedInterfaceOrientations
{
return gdr_supportedInterfaceOrientations();
}
can you confirm if it is the same bug?
The distortion still appear during rotating the device, but disappeared soon.
Likes: hgy29
Player is expected to be rotated due to allowing all orientations, but exported app should behave correctly
I guess this change is made for avoiding error if the supported orientation setting in Xcode is wrong,but this change really cause some problem.
- (NSUInteger)supportedInterfaceOrientations
{
/*
NSArray *supportedOrientations = [[NSBundle mainBundle] objectForInfoDictionaryKey:@UISupportedInterfaceOrientations];
NSUInteger result = gdr_supportedInterfaceOrientations();
BOOL supported = false;
for (NSNumber *orientation in supportedOrientations) {
if((result & [orientation integerValue]) != 0){
supported = true;
break;
}
}
if(supported)
return result;
else
return UIInterfaceOrientationMaskAll;
*/
return gdr_supportedInterfaceOrientations();
}
when hold the device in landscape and run bird animation in the player from the gideros studio, only half of the content is shown.