有没有办法在iOS中将线性渐变设置为LaunchScreen.xib的背景?像background="linear-gradient(#000000, #123456)"一样?

<view contentMode="scaleToFill" background="...">
    <rect key="frame" width="753" height="867"/>
</view>

最佳答案

您无法在LaunchScreen上添加自定义代码,因此实现此目的的替代方法是使用ImageView

尝试看看iOS 8 - Background gradient for launch screen file

关于ios - 如何在iOS中将线性渐变设置为LaunchScreen.xib的背景,我们在Stack Overflow上找到一个类似的问题:https://stackoverflow.com/questions/46057103/

10-11 22:14
查看更多