user3661306
user3661306

Reputation: 1

reducing my ios application size

I am developing my first app (iOS universal app), I want to reduce my app's size because it contains many images (png files) and sounds(mp3 files).

So my problem is: How can I reduce the size of my app (images and sounds)?

Thanks!

Upvotes: 0

Views: 613

Answers (2)

Andrea
Andrea

Reputation: 26385

Depends, compress png images to jpeg usually reduce app size, there are also image optimizers that compress pngs. If your images are part of the UI, tile them or stretch them really helps you in reduce app size and also memory usage. The image asset function in Xcode 5 helps in you in create resizable images.
For sounds the concept are pretty close to images, use compressed file audio as eckyzero said.
If your sounds and images aren't part of the UI but resources, you can make the app download them from the internet at first launch.

Upvotes: 0

ebandersen
ebandersen

Reputation: 2352

Images:

  • Only include the basics in your app bundle (i.e. app icons, launch image, and possibly images for the first page)
  • Use Parse (or any other similar service) to download any additional images after the app is downloaded.

This approach will significantly decrease the size of your app but also let you pull down additional image files as needed.

Sounds:

  • What is the type of sounds files you're using? .caf files are incredibly large. Using .aifc files are just as good quality (to my untrained ear at least) and takes up significantly less space

Upvotes: 1

Related Questions