 joywayerandClaude Opus 4.7
|
1247c14351
|
splash 启动图改 scaleAspectFill 全屏覆盖(与 WebView 同款撤销黑边)
接上一 commit f4307cc(WebView 全屏铺满):splash 启动图也应保持一致策略,
否则启动瞬间(iOS 系统 LaunchScreen)和过渡期(SplashOverlay)仍会显示
左右大黑边,与 WebView 全屏的视觉不连续。
3 处 contentMode 从 scaleAspectFit 改为 scaleAspectFill:
- LaunchScreen.storyboard(iOS 启动瞬间)
- WebContainerViewController 内 SplashOverlay.imageView
- SubGameViewController 内 SplashOverlay.imageView
scaleAspectFill 行为:素材 1136×640(16:9)在现代 iPhone 横屏(19.5:9)
上高度撑满,宽度按比例放大→左右轻微裁切。启动图左右是空白底色,logo
+ 文字主体居中可见,裁切无影响。
等价 daoqi msext LaunchImage Asset Catalog 时代「启动图覆盖整屏」体感。
Co-Authored-By: Claude Opus 4.7 <noreply@anthropic.com>
|
2026-06-23 07:26:15 +08:00 |
|
 joywayerandClaude Opus 4.7
|
0ecfa4fb69
|
修复 SplashImage 方向:素材逆时针旋转 90° 改为真正横屏
源素材 docs/res/Res/Default-568h@2x~iphone.png 是 CgBI PNG,物理 640×1136
但画面内容是"横躺"在竖向容器里 —— msext 旧 LaunchImage 系统依赖 device
orientation 自动旋转,现代 LaunchScreen.storyboard 没有这个魔法,直接显示
会看到躺倒的画面(用户反馈:启动图的横竖方向错误)。
处理:
- 用 sips -r -90 -s format png 一次性把素材逆时针旋转 90° 输出为标准
PNG(顺便去掉 CgBI 优化标志),物理像素 1136×640,覆盖到
ylgamehall/Assets.xcassets/SplashImage.imageset/SplashImage@2x.png
- LaunchScreen.storyboard 中 <image> 的 width/height 从 640/1136 改为
1136/640;UIImageView 的 contentMode 从 scaleAspectFill 改为
scaleAspectFit。aspectFit 在比 16:9 更宽的现代横屏 iPhone(如 16 Pro
≈2.17:1)上左右补黑边(黑底无视觉违和),保画面完整不裁切 logo
- WebContainer 的 SplashOverlay 用同款 scaleAspectFit,避免启动 → 容器
视觉过渡时出现裁切方式跳变
- BuildProject 通过
Plan 进度已勾选(§5 Phase 1.14.b + §8 同步修订)
Co-Authored-By: Claude Opus 4.7 <noreply@anthropic.com>
|
2026-06-22 03:10:53 +08:00 |
|
 joywayerandClaude Opus 4.7
|
ba34854133
|
Phase 1.14.b:LaunchScreen 替换为启动图(SplashImage)
- 将 docs/res/Res/Default-568h@2x~iphone.png(msext 时代竖图 640×1136
CgBI 压缩,29708 字节)拷入 ylgamehall/Assets.xcassets/SplashImage.imageset/,
Contents.json 声明 universal idiom @1x/@2x/@3x(仅 @2x 提供物理文件)
- 改写 LaunchScreen.storyboard:黑底 + 单个 UIImageView(image="SplashImage",
contentMode=scaleAspectFill),四边约束到 superview 完成全屏铺满
- 启动瞬间用户看到的是启动图而非黑屏;竖图在横屏设备上会被 aspectFill
上下裁剪,启动只展示 0.x s,接受此折衷,Phase 10 polish 时再考虑做
专门的横屏素材
- BuildProject 通过(55s)
Plan 进度已勾选(§5 Phase 1.14.b + §8)
Co-Authored-By: Claude Opus 4.7 <noreply@anthropic.com>
|
2026-06-22 02:43:14 +08:00 |
|
joywayer
|
108b359f96
|
Initial Commit
|
2026-06-21 19:37:33 +08:00 |
|