We have an app using spring boot. Works fine under Android or desktop.
When using an iPhone (we have tested it with iPhone 11 and 13), the layout width does not show complete, it is trimmed on both sides, it shows as if it would not fit on the apple screen. We have no issues with the height of the layout.
The base layout is a VerticalLayout, we set the size with setSizeFull();
iPhone
Android
Related
I am designing an application on Xcode using swift 5 and I need the app to be functional on devices from iPhone 6 to 11 pro max and I do not want to use auto layout, as it is too complicated to balance size and functionality. Is there a way to build the UI per device instead of a general one with auto layout
I have been developing an iOS app with no problems using xCode interface builder and storyboard. Everything has been going great until I opened my project today and now every screen is displaying incorrectly!!
For some reason it seems to be reducing the height of all screens.. It happens on all iPhone sizes..
I just started working with Auto Layout and my app will be in landscape mode. The app must be available for iPhone and iPad. What settings do I need to set for this? any - any in Auto layout? It should support iPhone 5 and later. And when I add a custom font in a text to my project in Any - Any, it looks of course smaller on an iPad because the screen is bigger. When I adjust the font to Regular width and any height and test it, it custom font is disappeared. Is this because I am using the wrong settings now? And when I insert an image, will it automatically be bigger on iPad?
Thank you very much!
In fact, there can be a lot of width/height settings for just "landscape mode, iPhone 5 or later".
If you open an interface builder file, you can click on the "wAny hAny" thingy to see what settings are suitable for what device.
For example, in the screenshot here, The settings "Regular Width | Compact Height" are for 5.5 inch phones in landscape mode:
If you don't know what size each iPhone model is, here's a simple chart:
Size (in) Model
3.5 4S
4 5
4.7 6S
5.5 6S Plus
I created a new app in Xcode 6 using Size Classes. After testing with iOS 7, I can't figure out how to get iPhone to display a certain size class while in landscape mode.
I first developed the UI with iPhone landscape as wAny hCompact, but iOS 7 doesn't recognize that. I had iPhone portrait in wAny hAny.
I then changed it so now I'm using wCompact hRegular for iPhone portrait. I then modified wAny hAny to be the landscape layout. But it's not using that layout when the iOS 7 device is in landscape.
Is iOS 7 able to use different size classes based on the device being portrait or landscape? If so, which size class should I be using?
Reference: Really helpful information about backwards compatibility with size classes.
ps. I'm not concerned with iPad because the device does not display a different size class based on the device rotation in iOS 8.
Size classes works in iOS 7 for sure. But only if you follow several rules:
The app is built using Xcode version 6 or later
The deployment target of the app is earlier than iOS 8
Size classes are specified in a storyboard or xib file
The value of the height component is not compact (yep, this is your case, it's not possible in iOS 7, unfortunatelly)
There is a little explanation here: https://stackoverflow.com/a/24976792/2190175
No I'm afraid that Size Classes were introduced in iOS 8. You could write some conditional code to run on iOS to determine the screen/view size/orientation and change the the layout that way when iOS 8 becomes your minimum target the conditional code can be removed.
I have developed a mobile web application which allows the user to take a picture with their mobile device camera and then displays it on an HTML5 canvas. When running this web application on an iPhone 5C under iOS 7, the image is severely vertically squished, so that it appears distorted and takes up approximately 20% of the canvas instead of taking 100% as intended.
This may be related to Safari image subsampling, which also caused vertical squishing in earlier versions of iOS and on other devices, although not nearly as bad as what is being seen in the above issue. A jquery plugin named megapix-image.js was created to address this issue and it works on iPhone4 and iPad running iOS 6 to correct this vertical squishing so the image appears correctly. megapix-image.js appears not to be compatible with iPhone 5/iOS 7 (it will not convert the image file).
Something to note is that iOS 7 completely corrected the vertical squishing issue seen on iPhone 4, but it has apparently made the problem much worse on iPhone 5/5C.
Is there a solution to this issue?
Solution:
<script type="text/javascript" src="~/Scripts/megapix-image.js"></script>
<script>
var mpImg = new MegaPixImage(file);
var mpImg.render(srcImage, {maxWidth: 960, maxHeight: 960});
</script>
where file is the file from the fileInput control and srcImage is the corrected image
I discovered that megapixel-image.js does work with iPhone 5 and iOS 7. I found I was calling some parameters incorrectly. The plug-in corrects the vertical squishing issue.