Icon Looks Strange on iPhone Home Screen - ios

Please check the left and right hand corners, the icon looks nice in other situation, the original icon also look nice, but when it shows on the home screen of iphone, there is a black line around the corner as shown below:
First one is original, second is retina, third is non-retina.
What's wrong? How to fix this??
Thanks!!

As described in the iOS HIGs you shouldn't add a rounded corner to the icon you supply. The corners will be automatically rounded on the homescreen. You probably got the radius wrong by a pixel or two.

Glow and shadow appears by default to all iOS homescreen icons. You can change it by adding:
UIPrerenderedIcon YES
to your Plist file.

The way to fix this is copy your square retina icon, rename it to be the same name as your current non retina icon, open it with Preview, resize it by half, save, replace old rounded icon with the one you just made.

I recommend using the template provided by this link instead. There is a script inside this template that will automatically output all the necessary format needed for your app. Just provide a square image as the original image and the template will take care of automatically of applying a mask to the part you want to be rounded so you shouldn't face the issue you are observing here. As mentioned by DrummerB you shouldn't provide an icon image with rounded corner.

You don't need to make icon image corners rounded, it gets rounded automatically.
Try without rounder corner image.

Related

Button background alignment

I'm a long-time web dev trying to get into iOS development and Xcode so please forgive me for the simplest of questions.
I have a strange issue when I cannot centre align button text within a button's background image. Please see the screenshot below. At the moment you can see the text sits right aligned to the background image.
It’s not a background image. Think of it more like an icon.
It looks like you might want to set your Style to “Default”. Then it will show a background field under image

iOS simulator screenshot bug

I am trying to make a screenshot of my app with cmd+s.
But there is only main screen on it.
I made screenshot (cmd+shift+3) of screenshot animation >_<
Any workaround solutions?
I am forced to make pixel-perfect interface.
You can use CMD + SHIFT + 4 to do a screen grab as a snippet.
Using this method you can select the exact area to screenshot by clicking and dragging the area. It even shows you the pixel width and height of the area as you drag the box.

UITabBar Image is not clear

I just recently got a new set of icons for my app (from an external designer) and I am trying to implement them, but for some reason it ends up looking like this (the new icon is the one in the middle):
I have tried setting the image of the tab bar to have UIImageRenderingModeAlwaysOriginal, but that's given me no luck.
Here's the icon (it kind of blends into the background but its a white envelope):
Any reason why this is happening and how I can fix?
The problem is that the entirety of your image is opaque - at least part of it needs to be transparent to appear as you want it to.
In the below image (since the entire thing is white now, it's directly below this text), I have removed the black line and made that transparent. I then added this image to a tab bar, and it worked fine for me.
Here's the link to the image, as well.
What I ended up doing was setting using UIImageRenderingModeAlwaysOriginal for the tabbar image in the awakeFromNib method...that seemed to fix the issue.

How to reslice an image in Xcode?

I am often a bit silly when I try to slice resizable images, and end up in this situation:
As you can see, I've done a 9-slice on the top image, and a 3-slice on the bottom. And yet, Xcode doesn't let me back out of this. My option seems to be deleting and then re-adding the image. But is there a way do re-specify slicing within Xcode?
While in slicing view, select the image you are want to reset (click on its title) and open the attributes inspector in the right sidebar (⌥⌘4). Under "Slicing" you can change slicing parameters, and even disable it.

How does one eliminate the rounded corners on the main window on an iPad app?

I have seen some iPad apps that fill the screen (e.g. Stanza) or have squared off corners under the status bar (e.g. the iPod player has square corners at the top; can't tell at the bottom). Anyone know how this is done?
It seems that, by default, the top-level UIWindow has a clipping region applied, as any subviews I place in that window get clipped off in those corners. If that is the case, is there a way to get rid of this? BTW, the clipping only seems to be there on the iPad, not on my iPod Touch (at least, not in the older OS version I'm running on there).
Following up: I even created the UIWindow programmatically and then set its background to a solid color and the rounded corners are still there, confirming that the clipping is either on the UIWindow or something even higher up.
(e.g. the iPod player has square corners at the top; can't tell at the bottom)
You'll need to get used to this: Apple apps will do things your apps can't do. Apple get to use private frameworks, App Store apps don't.
If you don't use the status bar (ie, completely 'full screen') you'll get a 'non rounded' screen. This is pretty simple to do - just hide the status bar from within your code (or, if you want it hidden throughout your app, you can just set it in your info.plist).

Resources