Strange behaviour for IOS 6 rotation - ios6

I have search the net and in the forum for two weeks. I couldn't find anything like my problem.
I have an app build on the IOS 3 and in time I made it compatible with all IOS versions.
All the app is in portrait mode and I only have one screen (a chart) which is in landscape mode. Until IOS 5 and IOS 5 also I get the beautiful rect with black edges when rotating.
On IOS 6 I see that after I rotate I get the chart Nib is being presented from the top right corner. (I can't post an image or a video to demonstrate it as it has a logo and I'm not sure it's allowed.
I am using setRootViewController at the beginning.
I attached a sketch to demonstrate.
How can I retrieve the right animation?

Related

Manage zoom level on Xcode9 simulators

Since Xcode 9 came out the simulator scale is disturbed. Here there is not any option of scaling further to 100% on some simulators and sometimes I am unable to switch to 100 % scale at all.
After searching on net I found out that sometimes if zooming doesn't work I need to do following to get it 100% zoom.
Uncheck Window -> Show Device Bezels
Click Window -> Zoom
Check Window -> Show Device Bezels
Is it something that I am missing to scale it further if I want to or current Xcode doesn't support further scaling at all.
Just drag the corner of the simulator window.

Change of orientation performance issue - codenameone

when orientation changes in android, native android call the destroy method and total new layout is to be made as far as I know. But I think codenameone doesn't do that which is a great thing. But when I checked the cn1 app in devices while changing from portrait to landscape a blank screen is seen for a while and then the orientation changes.
My Problem is that when I have many more components displayed in a form,
the blank screen appears for a longer duration and sometime it hangs. Does it
happen as I don't use Orientation listener methods etc or is there anything I
can do to solve this issue?
I just tried this on my device and it worked fine for the latest build on my Android 6 device. There was the rotation animation from Android where the screen rotated into its new place.
I'm guessing the rendering of your screen is so slow that Android takes too long to draw it and ends up drawing a black screen instead so it can proceed with the animation.
I can't benchmark an application remotely but I suggest going over the performance of your app and making sure it is truly optimized.

BackGrond gets distored while building application in code name one

I am building a application in codename one which has a log-in age.
I have a created a UI as the requirements but when i build the application from codename one's server for android then i see that a streamed background image gets distorted and convert in to lines.
The background image has a gradient from 3 dimension to center top.
I checked it in codename one simulator its looks fantastic but in android emulator background image gets distorted.
Please check attached image for it. i have added two image 1st is of codename one's emulator and 2nd one is android emulator.
Please let me know that i do.
You have a background gradient, the devices have a limited number of colors so the background will be distorted to some degree as the colors are adapted to the lower color count on the device.
This is assuming you didn't use a mutable image or a round rect border (not image border), in those two cases the number of colors might be lower because of drawing to an image surface that might be 16bit.

iPhone 5 screen size black bars

I am having problems in making my iPhone 4 (3.5 inch screen) work on iPhone 5 screen. I have already tried to import Default-568h#2x.png image for a launch image and it works properly in simulator, and when run on real device there are black bars on top and bottom of the screen. Does anybody have similar problem.
All apps that do not include the Default-568h#2x.png file are displayed in a letter box. Include the Default-568h#2x.png will make your app fill the screen on 4" retina devices.
hope this fix the issue.
You could have tested this issue in simulator itself .
There are two possible solutions for this. Listed below:
In the 'Simulated Metrics' section of UIVIew's attributes inspector, you can choose between 3,5" or 4" sizes. Choose 3,5", and make your views and subviews resizable .This will make it automatically scale your view to fit iPhone 5's screen.
2.OR you can make use of Auto Layout (constraints) with the deployment target of iOS 6+.
Hope this will solve the issue.

Submitting an iphone 5 optimized app to app store

When I started creating my app in xcode, all of the view controllers in the main storyboard were the iphone 5 4 inch display. So I have finally completed my iphone 5 app, however, when I run the app on an iphone 4 simulator everything is overlapping and skewed. Do I have to completely duplicate the app and downscale all my views to the iphone 4 3.5 inch display, or do I just go ahead and submit the app as it is?
What you should be doing is either:
a) Turn on auto-layout in your storyboard file and make sure that the views are correctly laid out in both screen sizes. There is a button in the Storyboard that toggles the sizes:
b) figure out what the screen size is in code and modify their positions accordingly.
Option a) is the easiest one to do.

Resources