美文网首页
xcode设置启动图

xcode设置启动图

作者: iOS程序媛ing | 来源:发表于2021-02-07 11:09 被阅读0次

设置启动图有两种方式:一是设置launchstroryborad。二是设置launchImage
首先介绍第一种方式

一、使用launchImage设置App启动图

1、首先在Targets --> General-->App lcons and Launch Images --> Launch Screen File 中选中LaunchScreen


WechatIMG102.jpeg

2、在LaunchScreen.storyboard 中添加UIimageView设置启动图片

二、使用launchImage设置App启动图

1、点击Assets.xcassets,然后点击Assets里面左下角的加号,然后选择iOS-->iOS Launch Image,如下图


截屏2021-02-07 上午11.02.47.png

2、在 Launch Image添加对应尺寸的图片


截屏2021-02-07 上午11.03.00.png
3、在target---build setting --搜索launch---在Asset Catalog Compiler - Options中设置为Launch Image
截屏2021-02-07 上午11.03.29.png

4、首先在Targets --> General-->App lcons and Launch Images --> Launch Screen File 中选中LaunchImage


WechatIMG102.jpeg
5、最后把LaunchScreen.storyboard 的 Use as Launch Screen和Use Safe Area Layout Guides 取消选中。
截屏2021-02-07 上午11.07.56.png

第二种方式如果运行了不显示启动页,就将app删除,重新安装

相关文章

  • iOS 启动图对应设置

    iOS开发过程中需要设置启动图,下面来说一下设置的启动图分辨率对应xcode里面设置的位置。 1.xCode里...

  • Xcode 设置启动图

    关于Xcode设置启动图目前有两种方式 一、创建项目的时候Xcode默认的一种方式:如下图 1、在Targets ...

  • Xcode设置启动图

    在Assets.xcassets设置启动图1、点击Assets.xcassets,然后点击Assets里面左下角的...

  • xcode设置启动图

    设置启动图有两种方式:一是设置launchstroryborad。二是设置launchImage首先介绍第一种方式...

  • iOS 最新Xcode logo启动图尺寸

    我用的Xcode版本是:12.5.1 设置启动图的方式是:使用LaunchScreen.storyBoard 启动...

  • Xcode 11 启动图设置

    1. 在 Asstes.xcassets 创建 LaunchImage(创建的名字 可以改, 这是默认名直接用...

  • Xcode6设置启动图

    用LaunchScreen.xib设置启动图太麻烦了,还要考虑适配问题。直接在TARGETS的App Icons ...

  • iOS自定义启动界面

    简介: 最近在重构app,原app用的是xcode自带的启动图设置。但相对来说自定义启动图可扩展性更强一点,今天花...

  • PCH文件以及启动界面的设置

    启动界面的设置 启动界面由Xcode5的图片文件到Xcode6的xib文件到Xcode7的storyboard文件...

  • Xcode设置启动图-LaunchScreen.storyboa

    前言 苹果提出从2020年4月份开始,所有支持iOS 13的App必须提供LaunchScreen.storybo...

网友评论

      本文标题:xcode设置启动图

      本文链接:https://www.haomeiwen.com/subject/ejtztltx.html