iOS开发启动图、广告页

启动图LaunchImage

两种方法设置启动图

1、LaunchScreen.storyboard

1、在LaunchScreen.storyboard中,拖拽imageView并设置约束,勾选右侧Use as launch Screen
2、工程—>General—>App Icons and Launch Images选项中设置Launch Screen File为所制作的LaunchScreen.storyboardLaunchScreen.xib

2、Assets.xcassets

1、准备图片

各种尺寸(单位:px),png格式的启动图:
320×480,640×960,640×1136,750×1334,1242×2208,1125x2436
(横屏需2208×1242)

  • iPhone Portrait iOS5,6
    (1x:320×480, 2x:640×960, Retina 4:640×1136)
  • iPhone Portrait iOS8,9
    (Retina HD 5.5:1242×2208, Retina HD 4.7:750×1334)
  • iPhone Landscape iOS 8,9
    (Retina HD 5.5:2208×1242)
  • iPhone Portrait iOS7,9
    (2x:640×960, Retina 4:640×1136)
  • iPhone X Portrait iOS 11+
    (3x:1125x2436)

2、将各尺寸的图片拖到LaunchImage

iOS开发启动图、广告页_第1张图片
lun1.jpg

iOS开发启动图、广告页_第2张图片
lun222.jpg

3、配置
工程—>General—>App Icons and Launch Images选项中设置Launch Image SourceLaunchImage
取消勾选Use as Launch Screen
置空路径Launch Screen File

1
1

启动广告

参考资料
https://www.jianshu.com/p/e52806516139
https://www.jianshu.com/p/abb490d20eec

你可能感兴趣的:(iOS开发启动图、广告页)