Windows 8.1 app Strange behaviour rotating the device - xaml

I have notice a strange behaviour executing a simple test for my app.
The app is running on a tablet device.
In portait mode, before rotation, i have the correct font size.
I rotate the device in landscape mode and the app is stretched correctly
I rotate again the app in portrait mode but the font size is
decreased.
Somebody know why this happen?
How can I avoid this behaviour.
I'm going crazy for 3 days without found a solution
EDIT
Testing the app with another device (8' display), the problem is still present.
The problem is present too testing the app with visual studio simulator !!
I don't think is a code problem because my app has 4 pages with 4 different
ListViews and the problem is present in all pages.
I notice that the font size change when the device is rotate for the first time from portait to landscape.
The destination FontSize in landscape mode could be accettable, but when in portrait mode i need (is a customer requirement) to go back with the original Font Size

Related

xcode not recognizing screen size height 677

I have an app I am updating because of the Launch Screen requirement instead of launch images.
In so doing I came up with many many warnings that "views without any layout constrainsts may clip their content or overlap other views". When I went in and tried to address the problem no matter what I did the warnings multiplied. So I am attempting to rewrite my code to get the screen size and place and size my objects for each phone. The problem is that Xcode apparently does not recognize iPhone 6 screen size on the actual device. In the simulator iPhone 8 is recognized but I don't have an actual iPhone 8 to try out. I would assume it is the same size as the iPhone 6. I have looked on line and I saw this was a problem and possible fixes were to "make sure iPhone 6 launch images were available", but since launch images are no longer that isn't a solution. I also tried
if([UIScreen mainScreen].fixedCoordinateSpace.bounds.size.height == 667.0){
also but that didn't help either.
I can't believe Apple doesn't want to have developers not get the screen size for iPhone 6.
Is there a work around or new way to get screen size for iPhone 6?
Does this problem happen on iPhone 7 and 8 and iPhone 6,7,8 +?
I just saw that I have to include specific sized launch images with my launch screen with specific names. Is this true? How do I do this? Is there a GOOD tutorial?
I am at my wits end and need a solution.
I found a place where I created and installed images for all iphone and ipad portrait sizes and put them in Launchimage in my image asset folder. my app only runs in portrait so I didn't think I needed to make landscape images. Anyway, even with all the correct size images, iphone 6 4.7" and 5.5" it still launches seeing the iphone 6 as a 5. In fact now it launches with a blank screen no launch images showing up at all.
So I added the landscape views and had forgotten an iphone portrait view. Now in the simulator iphone 8 and 8+ are recognized as the correct device by height but the launch image still isn't loading for iphone 8 and 8+ as well as ipad 7gen, air3gen, and pro 9.7. Only loads images for iphone11, 11pro, 11promax and ipad pro11 and 12.9.
On the actual iphone 6 the launch images isn't loaded and it still is recognized as an iphone 5. This has to be a Mess up by Apple.
Suggestions?
Thanks

iPad orientation bug in iOS 8

I am getting a strange error when launching my app in iPad running on iOS 8 (only if launched in landscape mode). Though, it works very fine in iOS 7
Here is the screenshot: http://imgur.com/OZRLjZ7
The app is fully portrait mode except one screen (graph which requires both portrait & landscape modes) and so I can't uncheck landscape property in deployment target. If I uncheck landscape orientation support in deployment target then it works very fine. So it works fine when I launch in iPad with iOS 8 (ONLY if it is portrait mode). If I launch it in landscape mode it shows this black strip (which is exactly the area which keyboard takes but there no keyboard, neither I'm showing it on this screen).
Thanks for your help in advance!

Screen gets cut and hangs for few seconds upon rotation

My windows 8 store xaml app gets cut in half upon rotation from landscape mode to Portrait mode and vice versa. Upon rotation the screen gets hanged for a second and gets cut. After a pause of around 3 seconds it gets adjusted to portrait mode. To get the app adjust in portrait mode i have written a storyboard that resizes the buttons and other columns.Then we are calling this storyboard or viewstate on size changed event. We have noticed that many Microsoft apps like mail, people, news apps has the same behaviour. Is there any way to fix this? Or does all the apps on Surface take time to re-adjust? Any reason for this? How can I fix it? Please check the screen shot taken at the time of rotation..

Game won't change rotation with iPhone's rotation in cocos2d

I have a problem that in cocos2d when I run my game it runs in portait mode even though the default orientation is landscape. http://gyazo.com/99bd018dc52c7f3311cb09eb5c7229d7
The resolution is also showing up as 320x480 even though i'm running the Retina iPhone Simulator. The resolution should be 640x960, if i'm correct? Retina display is enabled also.

IOS reorganize graphics on rotation

I'm making an iPad application with 19 buttons which are alle graphics. They are aligned next to and underneath eatchother, like in a grid. In portrait mode they are displayed nicely (because that's how I've set them) but I don't know what settings I need to choose for landscape mode.
When the device turns to landscape I've got room for 4 columns in stead of 3 in portrait for instance.
How can I make the app automatically adjust they layout of the buttons when rotated?
Thanks
In iOS5.1 or older, you will need to do this in code. In iOS6, its possible you can use a UICollectionView - not sure haven't played with it.