May
25
2009
As you probably know, the iPhone adds a nice glossy effect to your application’s icon. It sure does look good, but sometimes it just doesn’t suit your icon. It can be prevented by editing the Info.plist file. It’s easy! Follow me.

Click on one of the lines to make the little plus icon appear. Click the plus icon to add a new line.

Give it a key name of UIPrerenderedIcon.

The value is by default set to String, but we need to change it to Boolean. Right-click the newly created line, choose Value Type > Boolean.

The value has now magically transformed into a check box.

Click it!
And you’re done. It’s as easy as that.
no comments | tags: application, boolean, development, glossy, icon, iphone, uiprerenderedicon, value type, xcode | posted in iphone
Apr
28
2009
I’m currently using Flex Builder 3.0.1.205647 with Flex SDK 3.1.0 and I got an error saying Flex couldn’t create my AIR file. After a bit of googling I found out that it is a bug in Flex Builder 3 (Bug report #FB-11712), and it seems like it will be fixed in the Gumbo release.
The bug is related to adding custom application icons. You do this by editing the application’s xml file. To be more precise, at the lines which looks like these:
<!-- The icon to display for the file type. Optional. -->
<icon>
<image16x16>icon_16.png</image16x16>
<image32x32>icon_32.png</image32x32>
<image48x48>icon_48.png</image48x48>
<!--image128x128></image128x128-->
</icon>
The solution to this bug is actually quite simple. Simply comment out the icons you don’t plan to use -just like I have done in the example above. Oh, and be sure to tick the check box “Copy non-embedded files to output folder” in Project -> Properties -> Flex Compiler.
3 comments | tags: air, application icon, bug, compile error, create file, flex builder, flex sdk, gumbo, icon, non-embedded files, xml | posted in air, flex