Titanium Community Questions & Answer Archive

We felt that 6+ years of knowledge should not die so this is the Titanium Community Questions & Answer Archive

turning off the auto 'glare' effect on app icon

apparently doing this in the tiapp.xml file:

<prerendered-icon>true</prerendered-icon>

Should do the job, not so for me, have tried cleaning my build files, still can't turn it off. Any one have similar probs?

— asked September 29th 2010 by Leigh Kayley
  • glare
  • icon
  • iphone
0 Comments

4 Answers

  • I tried doing a rebuild but it still didn't affect it on the device. What did work for me though was:

    edit the root info.plist

    /Library/Application Support/Titanium/mobilesdk/osx/1.4.1.1/iphone

    and adding this line

    <key>UIPrerenderedIcon</key>
    <true/>

    found the info in this
    post

    — answered October 6th 2010 by Leigh Kayley
    permalink
    0 Comments
  • This worked for me:

    in tiapp.xml

    <prerendered-icon>true</prerendered-icon>
    

    Then launch iphone simulator -> delete your app -> build clean -> then run on iphone simulator

    — answered July 18th 2012 by Wade S
    permalink
    0 Comments
  • I just tested in Ti Developer 1.2.1, Ti SDK 1.4.1.1, iPhone SDK 4.1. Setting prerendered-icon to true has no effect in the simulator (heck, I can't remember the last time I got anything but a white icon in the simulator), but it results in the correct rendering of the image icon on the actual device, once you do a rebuild.

    — answered September 29th 2010 by Mike Dosey
    permalink
    0 Comments
  • I changed the flag, forced a full build and then looked at the app file that was created. The info.plist still had the flag enabled even though tiapp.xml was set to false. I'm going to guess this is a bug in Titanium builds and not the simulator.

    Actually I want to update my response. I opened the tiapp.xml and changed the icon name to appicon.png (which is what the iPhone would have expected), deleted the build and went into the simulator and deleted the app and did a full rebuild. I can now see an icon that is displayed exactly as the file shows and no longer has the glare. I don't remember picking default_app_logo.png but that's not the right name AFAIK.

    — answered September 29th 2010 by John McKnight
    permalink
    0 Comments
The ownership of individual contributions to this community generated content is retained by the authors of their contributions.
All trademarks remain the property of the respective owner.