Image color different from mac and iOS device - iphone

I've read some solutions about this color differences but they haven't worked. I tried taking a screenshot from my iphone and compare it to the simulator image or the image in the prview tool and its the same color, only when I see it on the device it looks different.
I'm using SDK 5.1 on XCode 4.3
How can I fix this ??
Thanks in advance.

OS X System Preferences has a Displays section where you can adjust the screen colors (I don't know whether that's safe to apply others than "Profiles for this display")
You can either try to use another profile, calibrate the screen or to google more taking this preferences pane into consideration.

Related

How To set Launch Images for Universal app

I'm using Xcode 10.1 and my app is a universal app. I'm having a design issue when loading the launch images using the assets i.e. it showing some black screen background in iPad Pro 11 inch and iPad pro 12.9 (3rd generation) devices other than that it working fine in all devices. So how can solve that issue? And If I want to use the LaunchScreen.storyboard file how can I set a single image to satisfy all screen sizes(which image size and what resolution(2x or 3x) have to use) ? or how to use the Static Launch Screen Images by the apple click here?
Any help appreciated.
As you wrote there are two ways to configure the LaunchScreen:
Static image from the special imagest - LaunchImage.launchimage
Designed screen that can hold multiple UI elements - LaunchScreen.storyboard
If your launch screen is simple enough and you choose to use Static image please make sure that your Info.plist doesn't hold the following key: <key>UILaunchStoryboardName</key> <string>LaunchScreen</string>, if it does then the static image won't be used.
The LaunchImage.launchimage holds an image for all device types and tells you which image size to use.
If you use it and do populate all the images and still some devices has no launch image try cleaning and rebuilding your app and uninstalling and reinstalling the app from your test device or simulator. Also consider updating your environment (xCode).
If you choose to use Designed screen please avoid setting the source of your ImageView to the LaunchImage.launchimage, its a special imageset. You can only use regular x.imagesets with less images (1x 2x R4 3x).
Take a look at the following answer to a different question, it explains the mechanism that auto selects the image, it also has table that connects iPhone type to the selected image.

Why does the iPhone Simulator show parts of the springboard behind the app?

While revising one of my apps to work with the latest iPhone dimensions I noticed the simulator was (wrongly) displaying icons behind the app like the app wasn't sized correctly for the new 1136 x 640 dimensions. I couldn't find anywhere in my Cocos2d 2.0 code that affected this issue and changing the size of the white background image did nothing. When I told the simulator to go "Home" and then relaunched the app, it appeared normal. This only happened when testing localization languages like German in the following image.
Sounds like a bug to me. Maybe report this to Apple?
Yes this is definetly a bug, if not then apple will help
Reset your simulato.
then run your project.
Removing all references to armv6 eliminated this issue.

screen label color varied between iphone simulator and device?

In my application, I set Red(34),Green(7),Blue(107) values for my UILabel. When I run in iPhone simulator it shows exact color what I need. But when I run this in iPhone device it shows some color variation compared to iPhone simulator. But when I take screenshot from iPhone device it shows exact color. I am really confused. I can't get my color varied screen shot.
So can anyone test this with your sample application(using label) , and provide me a your comments and feedback?
The problem is that the precise physical capabilities of the display of an iPhone and the Mac greatly differ. This is not a programming/software error, you can't really do anything about it.
Yes this happens, So you can not rely only by checking and getting approved by showing in Simulator. You need to check it live in iPhone.
What you can do is add some extra values and check again in iPhone
Red +(10-15),
Green +20,
Blue +15
This will give color near to what you want in iPhone.

Iphone simulator is not having phone shape

Iphone Simulator, in my Mac system, is not having regular phone shape like
Instead it looks like a window
When I give iOS Simulator->Hardware->rotate left, it gives a irregular shape
My Mac system Specification is
OSX: version 10.6.8
xcode: version 3.2.6
iOS: version 4.3
How this can be corrected?
The simulator is displayed this way if your screen is too small to fit the full version. Are you using something with a relatively small screen, like a MacBook Air?
If so it may not be a bug (well, the second screenshot is, obviously, but the first may not be).
Also check what Hardware > Device settings your simulator is using. If it's set to iPhone (Retina), try changing it to just iPhone, which should fit on your screen better.
Also, check the Window > Scale and see if it lets you change it.
Best thing is to reinstall xcode and ios sdk
You change simulator shape for iPhone device
MacBook Air
Simulator settings -> Window -> Show device bezels

How to create high-resolution iphone launch image?

As per the Apple iPhone Human Interface Guidelines I have created a Default.png image which is displayed while waiting for the application to load.
I created the image using the xcode organizer 'capture screenshot' feature.
I am now preparing my application for the iphone 4 high resolution screen and am wondering how to create the high resolution version of Default.png.
Is there a way to generate it from a screen shot like the standard Default.png image?
The easiest way I found is to use the special "Copy Screen" menu option in Simulator.
While the Simulator is running, hold the control key. The Edit menu will change from "Copy" to "Copy Screen". You now do a Command-V in Preview or Photoshop since the screen was saved to your clipboard buffer. Then save out the file as png.
High resolution Launch Images just need the #2x designation. You can capture them as a screen shot when running on iPhone 4, device or simulator.
It appears there are two options to create a high resolution (980x640) launch image from a screen shot of your application:
Using an iPhone 4 you can either use xcode to capture the image via the organizer window or by taking a screen shot on the device (using the lock and home buttons). I have not been able to test this as I do not have access to an iPhone 4
Using the iPhone Simulator you can emulate the iPhone 4 by going to Hardware -> Device -> iPhone 4 and capture a screen shot. In order to capture the screen shot you can use the built in os x screen shot functionality (cmd-shift-4). Alternatively there is a free tool called iPhone-Simulator Cropper which does a good job.
In recent versions of the iOS Simulator just use File -> Save Screenshot.
If you need to edit the screenshot at all (like rotate 90 degrees for landscape-only apps) using Preview's Tools -> Rotate Right is easy. If you edit the screenshot in Preview, be sure to take #ville-laurikari's advice and also use Tools -> Assign Profile... -> Color LCD before saving to make sure your colors look right.