I am creating an app for a class routine. I have about 70 horizontal arrangements, all of which need to have the exact same properties. Since it is not possible to copy horizontal arrangement, I was hoping to do it via blocks. But I don't want the app to resize my hor_arr blocks every time the app is run.
Now my question is, is there a way to do certain things so that it will only work on the first run, and stay that way?
A pseudocode for what I want to attempt is:
Boolean firstRun;
Check in phone locations for a file containing the firstRun condition.
if (firstRun_LocationInPhone is false){
doNothing;
} else {
foreach (hor_Arr){
setUpArrangementSizeAndOtherProperties
}
set value of firstRun_LocationInPhone to false;
}
Let me know if this is how I should approach my problem, or if there is a better/simpler way.