Dynamically changing stack dimensions for different devices
Posted: Mon Jul 02, 2012 9:41 pm
I'm still pretty new to all this - haven't yet published an app - so "please bear with", as they say, if I'm asking a dumb question.
I've got a main stack with a sub-stack of 4 cards, each of these cards containing referenced images, identical except that each card is for a different iOS device (iPod/old iPhone, new iPhone, older iPad, new iPad). The main stack will call on the referenced images, depending on which iOS device the stacks are on.
Trying to set up the main stack so that it will dynamically adapt its dimensions to whatever device it's on, I ran into the problem that whatever I did - as I now realise - the original development stack dimensions would always determine the card dimensions in the standalone app if you can get what I mean. There doesn't seem to be any way to change this, and trying to understand what's happening (and get rid of the "black borders") has been driving me crazy.
However, today I discovered that if I set the development stack window to full 1536 x 2048, then whichever device I choose in the iOS simulator, the stack window resizes nicely, and it works too as a stand-alone app on my physical iPhone 4 and iPad 2. At last, now, I can get the background button to resize dynamically to fit each device dimensions in the simulator, and dynamically set the background button's icon to the referenced image in appropriate card of the sub-stack.
All great, but that leaves me wondering if everyone is setting their development stack size to the largest dimensions they'll need. I can't work in iPad Retina size - too big for my monitor. I'm sure I'm missing something basic, but I'm not sure what.
I've got a main stack with a sub-stack of 4 cards, each of these cards containing referenced images, identical except that each card is for a different iOS device (iPod/old iPhone, new iPhone, older iPad, new iPad). The main stack will call on the referenced images, depending on which iOS device the stacks are on.
Trying to set up the main stack so that it will dynamically adapt its dimensions to whatever device it's on, I ran into the problem that whatever I did - as I now realise - the original development stack dimensions would always determine the card dimensions in the standalone app if you can get what I mean. There doesn't seem to be any way to change this, and trying to understand what's happening (and get rid of the "black borders") has been driving me crazy.
However, today I discovered that if I set the development stack window to full 1536 x 2048, then whichever device I choose in the iOS simulator, the stack window resizes nicely, and it works too as a stand-alone app on my physical iPhone 4 and iPad 2. At last, now, I can get the background button to resize dynamically to fit each device dimensions in the simulator, and dynamically set the background button's icon to the referenced image in appropriate card of the sub-stack.
All great, but that leaves me wondering if everyone is setting their development stack size to the largest dimensions they'll need. I can't work in iPad Retina size - too big for my monitor. I'm sure I'm missing something basic, but I'm not sure what.