i have issue with zoomed display.
on IOS until today i did not see any changes on my apps when user turn on zoom display .
now i developing an application, use auto layout constraints like always ,
but this is the first time that i saw that when user change setting to zoom display zoomed mode all my app get zoomed and the resolution get messy.
i tried every thing to understand the difference and stil get nothing.
i want to ignore the zoom, that the app act like normal mode,
is this possible?
You can't ignore the scaling... I think adding proper launchscreen file in your target settings may solve your problem.
Related
I'm developing an app where a screen need to be as dark as possible (the app need to run in a room all night long).
I already set a black background and the brightness to 0 using :
UIScreen.main.brightness = (0.0)
But it's still too bright for a good comfort of use.
I've searched around the internet and found
UIScreen.main.wantsSoftwareDimming = true
That I put before my previous code line, but nothing changed.
I've tried the trick with accessibility settings and zoom things, that works well, but that's not a way I'm allowed to use.
So, I'm a bit out of idea and any help would be appreciated.
Is it even still possible to do it?
Is it possible to turn off the backlight? (That would be the best)
It is possible to keep an app running when the screen is off by setting the UIApplicationExitsOnSuspend flag in your Info.plist.
It will only work if your app is in the foreground when the screen is turned off and it will disable any background mode for your app.
If a user has their option on their phone set to Zoomed, the text in the app I am developing is actually really zoomed out. (Settings > Display & Brightness > View)
Is there an option in xcode or within my own code that will fix this zoom issue. Maybe disable the zoom view in the app if the user has the option Display Zoom set to Zoomed on their phone.
Standard View:
Settings:
Zoomed setting on:
Is there a fix for this?
You can apply:
allowFontScaling={false}
To prevent this.
So, you can implement it like this:
<Text allowFontScaling={false}>Do not want font to scale</Text>
I use a Launch Screen (xib) in my app to overcome the problem of the resizeable screen, since i don't always want add Launchscreens everytime, Apple create a new iPhone with a different screen resolution.
In my launchscreen, i placed a UIImageView directly in the center of the view using constraints. The image shows the logo of the company i work for.
The problem is, that sometimes the image is being hidden (mostly after install and first launch) and sometimes it shows (mostly after a view times using it). I'm not quite sure, what the problem is. Is it because at the first-launch-time(s) it has to load many ressources?
Figured out the problem: It seems, that if there isn't enough disc space left on the device, it doesn't show the xib's (Launch-Screen's) Image. iOS at some point clears out some disc-space (i guess from NSLibraryDirectory) and than the images show again.
If this is a major problem to any of your apps, use Launch-Images instead.
For some reason, when I run my app, the game is zoomed in in the ipad simulator. I have to use a scroll bar at the right in order to move the screen up or down. The only way I've managed to get the entire thing looking normal is to scale it to 75% but I want to keep it at 100%. Does anyone know what the problem is and how I can fix it?
I get the same. There's plenty of room for the simulator to not be zoomed, but it is, like so:
The best solution I've found is to got to Window -> Zoom All. I have this bound to a keyboard shortcut so I can quickly fix it, but I haven't been able to find a way to make it not open zoomed.
What's the best way to control orientation changes when they happen too rapidly and overlap in time? In my application, I display a PDF document and scale it according to the current aspect ratio. It works OK if the new orientation changes occurs after the previous one completed. Otherwise, I seem to get an inconsistent state (e.g. portrait aspect ratio display in landscape mode).
Thank you,
Sam
I don't know which event you are using your code in.
If you are using -didRotateFromInterfaceOrientation or -willRotateToInterfaceOrientation it should work correctly. But if you are using the deviceoriention notification for this it can cause a lot of trouble.