Hey everyone!
I have a quick question. I have a simple app I made and it is on the app store but it's much larger than I think it should be. In the simplest form, it is just a recipes app for a liquor company. There is not much too it EXCEPT for some images I use as backgrounds and other things on each of the cards. I imported them in and they are put on an "image card", then I copy and paste them to whatever card I need to use them for. My question is does that mean everytime I copy and paste it to a new card, that takes up the size of the image for EACH time it is copied? I guess I was expecting that once it was imported that it was kind of "referencing" it and not really making copies of itself each time I use it.
Am I correct on these assumptions? If so what is the easiest way to cut down on the size of this app (a simple recipes app that is like 120mb!)?
Thanks!
App Size pretty large?
Moderators: FourthWorld, heatherlaine, Klaus, kevinmiller, robinmiller
Re: App Size pretty large?
Hi Djfuzion,
when you copy an image you do exactly that: copy it. The size of the stack goes up.
Since you already have the images on an "image card" you could just set the background pattern of a card or an object to the id of the image.
Manually:
Select the image you want to use and get its id. A number like 1234 then select e.g. a card, in the properties inspector for the card go to Colors and Patterns. Choose background pattern and fill in the number id number of the image you want. You would want to have the images of the size of the card. If the card or any other object is larger the image will tile.
For smaller images on the card use a button set its style to transparent, set its opaque to false and in Textformatting set margins to 0. In Icons & Borders set its icon to the id number of the image you want to show.
scripted:
set the icon of btn "myImageButton" to the short id of image "mySmallImage" of card "allMyImages"
or
set the backgroundPattern of card 1 to the short id of image "myBackgroundImageForCards" of card "allMyImages"
That should keep the stack size down.
Kind regards
Bernd
when you copy an image you do exactly that: copy it. The size of the stack goes up.
Since you already have the images on an "image card" you could just set the background pattern of a card or an object to the id of the image.
Manually:
Select the image you want to use and get its id. A number like 1234 then select e.g. a card, in the properties inspector for the card go to Colors and Patterns. Choose background pattern and fill in the number id number of the image you want. You would want to have the images of the size of the card. If the card or any other object is larger the image will tile.
For smaller images on the card use a button set its style to transparent, set its opaque to false and in Textformatting set margins to 0. In Icons & Borders set its icon to the id number of the image you want to show.
scripted:
set the icon of btn "myImageButton" to the short id of image "mySmallImage" of card "allMyImages"
or
set the backgroundPattern of card 1 to the short id of image "myBackgroundImageForCards" of card "allMyImages"
That should keep the stack size down.
Kind regards
Bernd