Skip to content
This repository was archived by the owner on Aug 31, 2021. It is now read-only.

Commit 39d09a3

Browse files
authored
Merge pull request #2124 from montegoulding/bugfix-22605
[[ Bug 22605 ]] Add iOS storyboard properties
2 parents 67b1bc3 + 5569a4d commit 39d09a3

File tree

4 files changed

+10
-115
lines changed

4 files changed

+10
-115
lines changed

Documentation/guides/Deploying Your Application.md

Lines changed: 5 additions & 19 deletions
Original file line numberDiff line numberDiff line change
@@ -338,25 +338,11 @@ Figure 10 – Standalone Settings – iOS Icons
338338
Figure 11 – Standalone Settings – iOS Splash
339339

340340
|  |  |
341-
|---------------------------------|--------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------|
342-
| **iPhone** | Choose a 320x480 pixel png image |
343-
| **Hi-Res iPhone** | Choose a 640x960 pixel png image |
344-
| **4 inch iPhone** | Choose a 640x1136 pixel png image |
345-
| **iPhone 6/7/8** | Choose a 750x1334 pixel png image |
346-
| **iPhone 6/7/8+ Portrait** | Choose a 1242x2208 pixel png image |
347-
| **iPhone 6/7/8+ Lscape** | Choose a 2208x1242 pixel png image |
348-
| **iPhone X/XS Portrait** | Choose a 1125x2436 pixel png image |
349-
| **iPhone X/XS Lscape** | Choose a 2436x1125 pixel png image |
350-
| **iPhone XR Portrait** | Choose a 828x1792 pixel png image |
351-
| **iPhone XR Lscape** | Choose a 1792x828 pixel png image |
352-
| **iPhone XSMAX Portrait** | Choose a 1242x2688 pixel png image |
353-
| **iPhone XSMAX Lscape** | Choose a 2688x1242 pixel png image |
354-
| **iPad Portrait** | Choose a 768x1024 pixel png image |
355-
| **iPad Lscape** | Choose a 1024x768 pixel png image |
356-
| **Hi-Res iPad Portrait** | Choose a 1536x2048 pixel png image |
357-
| **Hi-Res iPad Lscape** | Choose a 2048x1536 pixel png image |
358-
| **iPad Pro 12.9 Portrait** | Choose a 2048x2732 pixel png image |
359-
| **iPad Pro 12.9 Lscape** | Choose a 2732x2048 pixel png image |
341+
|---------------------------------|-------------------------------------------------------------------------------------------------------------|
342+
| **Launch Image** | Choose a png image. This will be centered on screen. A 2732x2732 image will cover all current devices. |
343+
| **2x Launch Image** | Choose a png image. This will be centered on screen. A 5464x5464 image will cover all current devices. |
344+
| **3x Launch Image** | Choose a png image. This will be centered on screen. A 8196x8196 image will cover all current devices. |
345+
| **Background Color** | Choose a background color for transparent areas and/or areas of the screen the launch image does not cover. |
360346

361347
Related lessons:
362348

-38.1 KB
Loading
-19.8 KB
Binary file not shown.

Toolset/palettes/standalone settings/revstandalonesettingsiosbehavior.livecodescript

Lines changed: 5 additions & 96 deletions
Original file line numberDiff line numberDiff line change
@@ -135,37 +135,6 @@ on updateSettings
135135
storeSetting "icon", empty
136136
end if
137137

138-
if tSettings["ios,splash"] is not empty then
139-
local tSplash
140-
put stripSuffix(tSettings["ios,splash"], ".png,-@2x.png,-Landscape.png,-Portrait") into tSplash
141-
if not (tSplash begins with slash) then
142-
put utilityTargetStackPath() & slash before tSplash
143-
end if
144-
145-
get tSplash & ".png"
146-
if there is a file it and getImageDimensions(it) is "320,480" then
147-
put it into tSettings["ios,iphone splash"]
148-
storeSetting("iphone splash", utilityMakePathRelative(it, utilityTargetStackPath()))
149-
end if
150-
get tSplash & "@2x.png"
151-
if there is a file it and getImageDimensions(it) is "640,960" then
152-
put it into tSettings["ios,retina splash"]
153-
storeSetting("retina splash", utilityMakePathRelative(it, utilityTargetStackPath()))
154-
end if
155-
get tSplash & "-Portrait.png"
156-
if there is a file it and getImageDimensions(it) is "768,1024" then
157-
put it into tSettings["ios,ipad landscape splash"]
158-
storeSetting("ipad landscape splash", utilityMakePathRelative(it, utilityTargetStackPath()))
159-
end if
160-
get tSplash & "-Landscape.png"
161-
if there is a file it and getImageDimensions(it) is "1024,768" then
162-
put it into tSettings["ios,ipad portrait splash"]
163-
storeSetting("ipad portrait splash", utilityMakePathRelative(it, utilityTargetStackPath()))
164-
end if
165-
166-
storeSetting "splash", empty
167-
end if
168-
169138
-- MM-2011-09-28: Sepearate out the icons and splash screens so the user can specify the values per device.
170139
--
171140
put computeDefault(tSettings["ios,AppStore icon"], empty) into field "AppStore Icon"
@@ -180,26 +149,11 @@ on updateSettings
180149
put computeDefault(tSettings["ios,iOS 7 ipad retina icon"], empty) into field "iOS 7 iPad Retina Icon"
181150
put computeDefault(tSettings["ios,iPad Pro 12.9 icon"], empty) into field "iPad Pro 12.9 Icon"
182151
put computeDefault(tSettings["ios,iPad Pro 11 icon"], empty) into field "iPad Pro 11 Icon"
183-
put computeDefault(tSettings["ios,iphone splash"], empty) into field "iPhone Splash"
184-
put computeDefault(tSettings["ios,retina splash"], empty) into field "Retina Splash"
185-
put computeDefault(tSettings["ios,iphone 4inch splash"], empty) into field "iPhone 4Inch Splash"
186-
put computeDefault(tSettings["ios,iPhone 6 splash"], empty) into field "iPhone 6 Splash"
187-
put computeDefault(tSettings["ios,iPhone 6 Plus Portrait splash"], empty) into field "iPhone 6 Plus Portrait Splash"
188-
put computeDefault(tSettings["ios,iPhone 6 Plus Landscape splash"], empty) into field "iPhone 6 Plus Landscape Splash"
189-
put computeDefault(tSettings["ios,iPhone X Portrait splash"], empty) into field "iPhone X Portrait Splash"
190-
put computeDefault(tSettings["ios,iPhone X Landscape splash"], empty) into field "iPhone X Landscape Splash"
191-
put computeDefault(tSettings["ios,iPhone XR Portrait splash"], empty) into field "iPhone XR Portrait Splash"
192-
put computeDefault(tSettings["ios,iPhone XR Landscape splash"], empty) into field "iPhone XR Landscape Splash"
193-
put computeDefault(tSettings["ios,iPhone XSMAX Portrait splash"], empty) into field "iPhone XSMAX Portrait Splash"
194-
put computeDefault(tSettings["ios,iPhone XSMAX Landscape splash"], empty) into field "iPhone XSMAX Landscape Splash"
195-
put computeDefault(tSettings["ios,ipad portrait splash"], empty) into field "iPad Portrait Splash"
196-
put computeDefault(tSettings["ios,ipad landscape splash"], empty) into field "iPad Landscape Splash"
197-
put computeDefault(tSettings["ios,ipad retina portrait splash"], empty) into field "iPad Retina Portrait Splash"
198-
put computeDefault(tSettings["ios,ipad retina landscape splash"], empty) into field "iPad Retina Landscape Splash"
199-
put computeDefault(tSettings["ios,ipad pro 12.9 portrait splash"], empty) into field "iPad Pro 12.9 Portrait Splash"
200-
put computeDefault(tSettings["ios,ipad pro 12.9 landscape splash"], empty) into field "iPad Pro 12.9 Landscape Splash"
201-
put computeDefault(tSettings["ios,ipad pro 11 portrait splash"], empty) into field "iPad Pro 11 Portrait Splash"
202-
put computeDefault(tSettings["ios,ipad pro 11 landscape splash"], empty) into field "iPad Pro 11 Landscape Splash"
152+
153+
put computeDefault(tSettings["ios,launch-image-1x"], empty) into field "launch-image-1x"
154+
put computeDefault(tSettings["ios,launch-image-2x"], empty) into field "launch-image-2x"
155+
put computeDefault(tSettings["ios,launch-image-3x"], empty) into field "launch-image-3x"
156+
set the backColor of graphic "launch-backcolor" to computeDefault(tSettings["ios,launch-backcolor"], "0,0,0")
203157

204158
local tProfiles, tProfileIndex
205159
put empty into tProfileIndex
@@ -353,31 +307,6 @@ command updateOrientationSettings
353307
set the hilite of button i of group "iPad Initial Orientations" to \
354308
it is among the items of tSupportedOrientations
355309
end repeat
356-
357-
-- Set the enabled of the iPad splash screens selectors based on the orientations set.
358-
-- Possibly turn this off, might be quite annoying.
359-
--
360-
if the enabled of group "iPad Initial Orientations" then
361-
set the enabled of group "iPad Portrait Splash" to (tSupportedOrientations contains "portrait")
362-
set the enabled of group "iPad Landscape Splash" to (tSupportedOrientations contains "landscape")
363-
set the enabled of group "iPad Retina Portrait Splash" to (tSupportedOrientations contains "portrait")
364-
set the enabled of group "iPad Retina Landscape Splash" to (tSupportedOrientations contains "landscape")
365-
set the enabled of group "iPad Pro 12.9 Portrait Splash" to (tSupportedOrientations contains "portrait")
366-
set the enabled of group "iPad Pro 12.9 Landscape Splash" to (tSupportedOrientations contains "landscape")
367-
set the enabled of group "iPad Pro 11 Portrait Splash" to (tSupportedOrientations contains "portrait")
368-
set the enabled of group "iPad Pro 11 Landscape Splash" to (tSupportedOrientations contains "landscape")
369-
end if
370-
371-
if the enabled of button "iPhone Intial Orientation" then
372-
set the enabled of group "iPhone 6 Plus Portrait Splash" to tInitialOrientation contains "portrait"
373-
set the enabled of group "iPhone 6 Plus Landscape Splash" to tInitialOrientation contains "landscape"
374-
set the enabled of group "iPhone X Portrait Splash" to tInitialOrientation contains "portrait"
375-
set the enabled of group "iPhone X Landscape Splash" to tInitialOrientation contains "landscape"
376-
set the enabled of group "iPhone XR Portrait Splash" to tInitialOrientation contains "portrait"
377-
set the enabled of group "iPhone XR Landscape Splash" to tInitialOrientation contains "landscape"
378-
set the enabled of group "iPhone XSMAX Portrait Splash" to tInitialOrientation contains "portrait"
379-
set the enabled of group "iPhone XSMAX Landscape Splash" to tInitialOrientation contains "landscape"
380-
end if
381310
end updateOrientationSettings
382311

383312
-- MM-2011-09-28: Enable/disable setting device specif settings based on the currently selected device list.
@@ -397,26 +326,6 @@ command enableDeviceSpecificSettings pDevices
397326
set the enabled of group "iOS 7 iPad Retina Icon" to (2 is among the items of pDevices)
398327
set the enabled of group "iPad Pro 12.9 Icon" to (2 is among the items of pDevices)
399328
set the enabled of group "iPad Pro 11 Icon" to (2 is among the items of pDevices)
400-
set the enabled of group "iPhone Splash" to (1 is among the items of pDevices)
401-
set the enabled of group "Retina Splash" to (1 is among the items of pDevices)
402-
set the enabled of group "iPhone 4Inch Splash" to (1 is among the items of pDevices)
403-
set the enabled of group "iPhone 6 Splash" to (1 is among the items of pDevices)
404-
set the enabled of group "iPhone 6 Plus Portrait Splash" to (1 is among the items of pDevices)
405-
set the enabled of group "iPhone 6 Plus Landscape Splash" to (1 is among the items of pDevices)
406-
set the enabled of group "iPhone X Portrait Splash" to (1 is among the items of pDevices)
407-
set the enabled of group "iPhone X Landscape Splash" to (1 is among the items of pDevices)
408-
set the enabled of group "iPhone XR Portrait Splash" to (1 is among the items of pDevices)
409-
set the enabled of group "iPhone XR Landscape Splash" to (1 is among the items of pDevices)
410-
set the enabled of group "iPhone XSMAX Portrait Splash" to (1 is among the items of pDevices)
411-
set the enabled of group "iPhone XSMAX Landscape Splash" to (1 is among the items of pDevices)
412-
set the enabled of group "iPad Portrait Splash" to (2 is among the items of pDevices)
413-
set the enabled of group "iPad Landscape Splash" to (2 is among the items of pDevices)
414-
set the enabled of group "iPad Retina Portrait Splash" to (2 is among the items of pDevices)
415-
set the enabled of group "iPad Retina Landscape Splash" to (2 is among the items of pDevices)
416-
set the enabled of group "iPad Pro 12.9 Portrait Splash" to (2 is among the items of pDevices)
417-
set the enabled of group "iPad Pro 12.9 Landscape Splash" to (2 is among the items of pDevices)
418-
set the enabled of group "iPad Pro 11 Portrait Splash" to (2 is among the items of pDevices)
419-
set the enabled of group "iPad Pro 11 Landscape Splash" to (2 is among the items of pDevices)
420329
set the enabled of button "iPhone Intial Orientation" to (1 is among the items of pDevices)
421330
set the enabled of group "iPad Initial Orientations" to (2 is among the items of pDevices)
422331

0 commit comments

Comments
 (0)