You need to enable JavaScript to run this app.
优惠活动
大模型
产品
解决方案
定价
更多

iOS启动屏部分SVG无法正常显示问题求助

iOS启动屏SVG显示异常问题

早上好,我在将SVG图片用作iOS启动屏时遇到了问题。

更新说明

在iOS 17.4版本的模拟器中,该SVG可在iPhone SE和iPad Pro第2代正常显示,但在iPhone 15 Pro和iPad Pro第6代无法显示。

Xcode设置截图

  • [截图1]
  • [截图2]
  • [截图3]
  • [截图4]

我还使用了其他由Illustrator创建并导出的SVG,但部分可用,部分不可用。以下是所用的两个SVG代码:

BIKE (foreground.svg)

<?xml version="1.0" encoding="utf-8"?>
<!-- Generator: Adobe Illustrator 27.8.0, SVG Export Plug-In . SVG Version: 6.00 Build 0)  -->
<svg version="1.1" id="Layer_1" xmlns="http://www.w3.org/2000/svg" xmlns:xlink="http://www.w3.org/1999/xlink" x="0px" y="0px"
     viewBox="0 0 1024 1024" style="enable-background:new 0 0 1024 1024;" xml:space="preserve">
<style type="text/css">
    .st0{fill:#000000;}
</style>
<g>
    <path class="st0" d="M147.1,537.3c15.1-3,45.7-5.3,74.4-5.3c35.1,0,56.6,3.4,75.1,14.3c17.7,9.4,30.6,26.8,30.6,49.8
        c0,22.6-13.2,43.8-41.9,54.4v0.8c29.1,7.9,50.6,29.8,50.6,62.7c0,23-10.6,41.1-26.4,54c-18.5,14.7-49.5,23-100,23
        c-28.3,0-49.5-1.9-62.3-3.8V537.3z M204.1,634.7H223c30.2,0,46.4-12.5,46.4-31.3c0-19.3-14.7-29.4-40.8-29.4
        c-12.5,0-19.6,0.8-24.5,1.5V634.7z M204.1,747.6c5.7,0.8,12.5,0.8,22.3,0.8c26,0,49.1-9.8,49.1-36.6c0-25.7-23-35.9-51.7-35.9
        h-19.6V747.6z"/>
    <path class="st0" d="M432.9,533.9v254.4h-57.8V533.9H432.9z"/>
    <path class="st0" d="M482.7,533.9h57v112.5h1.1c5.7-9.8,11.7-18.9,17.4-27.9l57.8-84.6h70.6l-84.2,108.3l88.7,146.1h-67.2
        l-62.3-109.9l-21.9,26.8v83h-57V533.9z"/>
    <path class="st0" d="M865.9,680.7h-93.6v60.4h104.6v47.2H714.5V533.9h157v47.2h-99.3v52.8h93.6V680.7z"/>
</g>
</svg>

BACKGROUND (background.svg)

<?xml version="1.0" encoding="utf-8"?>
<!-- Generator: Adobe Illustrator 27.8.0, SVG Export Plug-In . SVG Version: 6.00 Build 0)  -->
<svg version="1.1" id="Layer_2_00000170976655646479075690000011234735479013278605_"
     xmlns="http://www.w3.org/2000/svg" xmlns:xlink="http://www.w3.org/1999/xlink" x="0px" y="0px" viewBox="0 0 1024 1024"
     style="enable-background:new 0 0 1024 1024;" xml:space="preserve">
<g>
    <rect style="fill:#F3A62B;" width="1024" height="512"/>
    <rect y="512" style="fill:#329F94;" width="1024" height="512"/>
</g>
</svg>

非常感谢您的帮助。


内容的提问来源于stack exchange,提问作者Luca Romano

相关产品推荐
方舟 Agent Plan

超全模态模型 × Harness 升级,最新支持 Deepseek-V4.1-Flash、GLM-5.3 系列、Doubao-Seedream-5.0-pro、Kimi-K3 (部分), 限时 9.9 元起

最近更新时间:2026.06.26 07:04:54