O'Reilly logo

RubyMotion by Clay Allsopp

Stay ahead with the world's most comprehensive technology and business learning platform.

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, tutorials, and more.

Start Free Trial

No credit card required

Including App Resources

So far, we’ve just been shipping code with our apps, but most projects require a variety of resources: images, sounds, or just raw data. RubyMotion has pretty seamless methods for including each of these, so let’s take look.

Bundling Icons

Dribbble-worthy or not, your app’s icon will appear in many different locations and on varying resolutions: iPhones, iPads, iTunes, and maybe more in the future. To preserve the icon’s visual integrity, Apple encourages developers to ship multiple versions of the icon with every app.

To include your icon files, simply add them to the resources folder. They can have any name, but being descriptive is never a bad idea (such as Icon-72 and Icon-144). Finally, set the icons array of ...

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, interactive tutorials, and more.

Start Free Trial

No credit card required