Fixing blurry UIButton’s.

Once in a while you’ll notice that your UIButton images on your iOS device and simulator seem a bit blurry, while in XCode they seem fine. One possible reason is that your png images are an odd width and/or height. This seems to be because iOS tries to center the image in your UIButton, and since half of an even number is not an integer, it has to antialias everything to fit nicely.

The fix is simple: Add an extra pixel to the width and/or height to make it an even number.