I'm putting in a UIDatePicker in a UIView and I can see that the UIDatePicker has a border that is some kind of a dark color on the bottom and it gets lighter as you get higher. I want the containing UIView to use the same colors so that the UIDatePicker flows with the rest of the view and doesn't stand out.
I can put in a gradient in the containing view, but I don't know what colors to use! If anyone could suggest them, I'd appreciate it.
mj
Light Color (Top): RGB: 145,146,154
Dark Color (Bottom): RGB: 30,31,44
Use Digital Color Meter that is built-in to OS X (in the Utilities folder).
The colours displayed in Xcode don't always match those when the app is viewed on an actual iOS device, especially for UIDatePicker object.
What I've found useful is the following:
Run the app on an iOS device with your objects on screen
Take a screenshot (hold down the home button and the power button together)
Email that screenshot to your Mac
Use the OS X Digital Color Meter on the screenshot to get accurate RGB values
Remember to check both retina and non retina devices for colour matching.
Related
When I use the canvas view, my app has normal blue links in both dark and light themes. However, when I run it in the simulator or on any test device, they are red instead of blue, in both light and dark themes. What the heck is going on?!?
I'm using latest version of everything, and I've tried it on multiple sim devices and physical devices. This is present on every screen in my app.
Turns out my co-developer had added an override in the AppDelegate that was changing the text colors. Removing that fixed the issue.
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.
I have an icon.png which has white background with a blue faced cartoon.
Something like the face of this image.
But, when i see it in simulator/device than its background color change from white to black with blue face at always.
Does iphone change it to provide the aero effect?
Ehm no, it doesn't... Are you sure the icon.png has a white background and is not transparent? And what are you using this for? Is the icon.png being used in your app itself, or is it the icon of your application?
If the icon.png is transparent, it might be caused by the background color of the UIView you are using it in. I suggest changing the icon.png or changing the background color of the view.
Thanks #Anstwan van Houdt. After your reply, i search iphone app icon against transparency and found below this link. It states that if we make a icon transparent that it would give black background color by default.
So, better we give it.
I'm using the Default.png method to create a splashscreen. I'm using the same file for my background and the Default.png (except default.png has the 20 pixel status bar at the top).
However, the iphone isn't displaying them in them the same. The Default.png is being displayed darker than the background, so it's painfully obvious when the app is loaded.
As a visual example of what I mean, please see below:
The image on left is the Default.png whereas the image on the right is when the app has loaded. The difference looks subtle here but when the whole image changes, it looks quite drastic.
Is this an issue with the colour-formatting of the pngs? Or is this an iOS feature whereby the Default.png appears slightly darker anyway?
It's probably not worth mentioning but I'm using Monotouch to develop my app, I doubt that would have anything to do with this.
I had a problem like this after editing a screenshot with OSX's Preview to cut out the status bar (as needed for iPad splashes). Preview sticked a color profile, and splash screen appears darker than the real thing in device.
If you open the image with GIMP, it shows a dialog offering to convert the color profile to SRGB. Take it (press "Convert") and save the image. This fixes the color difference.
Solved the problem. The designer sent me new versions of the backgrounds and the Default.png is now displaying the correct colour.
I have a feeling I had saved the previous version with a different colour profile to the background, hence why it was being displayed differently.
I have successfully placed an image into the lefthand ImageView of a default UITableViewCell and this shows up as a white image over the background blue of a selected row. However the image is invisible when the table cell background is white.
The image came from a 3rd party iPhone tabbar icon set, hence it is white. Can I programatically flip the image to black? Or is there an Apple Mac icon editing utility that will allow me to apply this change?
(I know some will be tempted to cast this question out to another end-user stackoverflow site but before you do consider that there are 100's or 1000's iPhone tabbar icons on the net and a few developers would probably be interested in adding these to their iPhone App UI outside of a UITabBar.)
Opacity is one of the best icon editing utilities. It has preview modes for how the icon will look on the iPhone, in the App Store, as well as on the web.
Also, Acorn is popular and easy to use.