Archive for the ‘Code’ Category

Stop using an UIImageView to put a background image in your UIView

Ugh.  Every now and again I run across something that is (now) so trivially obvious that I’m embarrassed by its simplicity and my oversight. To add a background image to the main view of your UIViewController, you can add a UIImageView at the same size as the UIView, make sure it is the UI element [...]

Button Image Creation via Core Graphics & Image Masks

For the next app coming from the Cluebucket, I’ll be implementing a theme manager that will manage how the game appears using themes that the user will download from the AppStore. Among other things, a theme will define which fonts are used in the UI, images and colors.  Initially, I had even gone so far [...]

FiveStars

I had some spare time earlier this week and took the opportunity to get to know Core Graphics.  Its been a real treat as CG offers a lot of power but it takes some getting used to. I’d been thinking for some time that a star rating widget for iPhone apps might be useful — [...]