ios8以后设置启动图

【科研】Michaelis–Menten 曲线(米氏曲线)中反应速率的计算 Michaelis–Menten 曲线 米氏曲线 纵坐标 反应速率求值 朗伯比尔定律 阅读详情
Apple在iOS8中推出了LaunchScreen.xib来代替之前的LaunchImage作为程序的启动界面,在iOS设备屏幕尺寸越来越多样的情况下,比起使用多张不同尺寸的LaunchImage,提供了更方便的方法.
iOS8之前启动图使用的是静态启动图片

启动图片是iOS加载App的时候系统响应的直观呈现。近几年,随着屏幕尺寸的增多,制作相应的静态图片就变成一件十分让人头疼的事。常用机型启动图片的尺寸列举:

型号尺寸
iPhone 4s640 x 960
iPhone 5640 x 1136
iPhone 6 & 7750 x 1334
iPhone 6Plus & 7Plus1242 x 2208
Xcode 6 & iOS8开始允许使用NIB或storyboard launch screen 文件加载启动图.

利用auto layout 和size classes的优势,一个单独的NIB或storyboard文件在runtime时可以自动的去创建启动图片集。这样支持多尺寸屏幕时,无需提供上面列举的不同尺寸的静态图片.

1.创建.xib/.storyboard 文件

Xcode6在创建新工程时默认添加了一个LaunchScreen.xib文件。对一个已经存在的工程可以用Launch Screen 模板创建一个新的文件。

这一步将会在工程中添加一个NIB文件(在Xcode7里,默认添加的是LaunchScreen.storyboard文件),可以在初始化的启动屏上添加视图或者视图控制器。

这里写图片描述

2.设置plist文件
这一步将会把键 Launch screen interface file base name(UILaunchStoryboardName)加到应用的plist 文件中

这里写图片描述
3.自定义布局

在Interface Builder中可以对启动视图进行布局.将autolayout和size classes作为必选项,可以为不同的屏幕创建匹配的图片。Xcode模板提供的风格,只是对app的名称和所有权进行了布局,可以添加或删除模板上的控件来自定义加载界面.

默认模板效果图:

这里写图片描述

Launch Screen 的局限性

系统在启动app之前装载启动文件,在这个过程中可能对app包含的一些文件产生限制:

1.由于app还没装载完毕,一些视图的层级结构还不存在,系统不能调用app中任何自定义的视图控制器去启动代码.因此仅仅能使用标准的UIKit类,所以可以用UIView或者UIViewController,自定义的子类则不可以。如果尝试着去设置子类,将会得到一个“配置无效”的错误。

2.启动文件仅仅能够用基础的UIKit视图,像UIImageView 和UILabel,不能使用 UIWebView。
如果你用了storyboard,你可以指定多个视图控制器,但是仍旧有一些限制。例如,你可以在navagation或者tab bar controller嵌入几个视图控制器,但是一些更复杂的类,像UISplitViewController 并不起作用 (至少现在如此).

另外,尽管苹果文档中并没有清楚地说明,但需要的启动图片在runtime时被生成了。在WWDC 2014
Platform State of the Union上被简短的提到过。可以通过App在真机或者模拟器上生成的文件夹证实。被特定设备需要的启动图被缓存在Library/Caches/LaunchImages。

锂电池充电器电路设计 里面有电路 锂电池充电器电路设计 里面有电路 3.7V升压到5V电路设计。 立即下载

相关推荐

探索Vortex开源GPGPU:RISC-V SIMT架构(2),指令Decode

本文分析了Vortex RISC-V内核的Decode模块设计。文章详细介绍了指令译码过程,包括操作码、功能码和寄存器字段的提取,以及不同类型指令(R/I/S/B/U/UJ)的立即数处理。重点阐述了基于操作码和功能码的分层译码逻辑,包括ALU运算、分支跳转、系统调用等指令的译码规则。此外,还描述了定制指令的处理机制以及与调度器的握手协议。Decode模块通过组合逻辑实现快速译码,并将结果传递给下级Issue模块,同时协调指令流控制。

weixin_55313207的博客 1801

iOS17 最新的方式设置启动图片 2024年04月更新

从2020年4月开始,苹果要求使用 iOS 13 SDK 的应用程序必须提供 Launch Screen 文件,而不再允许使用 Launch Image 来设置启动页。这意味着未来的应用程序必须使用 Launch Screen 来设置启动页,以适配不同尺寸的设备屏幕,并提供更灵活的启动页设计。 Launch Screen 文件通常是一个 LaunchScreen.storyboard 文件,开发者可以在其中使用 Interface Builder 来创建启动页界面,并通过 Auto Layout 约束来适配

长沙火山 7689

基于Arduino与脑电模块的意念控制LED灯环实现

脑机接口(BCI)技术通过采集和处理脑电信号,实现人脑与外部设备的直接交互。其核心原理是利用传感器捕捉大脑活动产生的微弱电信号,经过放大、滤波和特征提取,转换为可识别的指令。这项技术在医疗康复、神经反馈训练和人机交互等领域具有重要价值。本文聚焦于一个具体的工程实践:使用消费级NeuroSky TGAM模块采集专注度与放松度数据,通过Arduino平台解析信号,并驱动WS2812B LED灯环实现实时可视化反馈。项目涵盖了硬件选型、电路搭建、数据解析和光效映射等关键环节,为脑机接口入门和嵌入式开发提供了完整的

weixin_28721917的博客 290

iOS设置启动图(Assets.xcassets里面设置图片的方法)

一:在工程 TARGETS - Build Settings 搜索 Asset Catalog Launch Image Set Name 然后设置创建的启动页名字即可,如下图所示: 二:在 TARGETS - info 中删除 Launch screen interface file base name,并添加 Launch image 并设置 LaunchImage,如下图所示: 三:在资源文件中添加 LaunchImage 放入不同尺寸的图片,如下图所示: 四:重新安装运行APP就可以了。

weixin_41569744的博客 1363

基于STM32L4XX、HAL库的 L76KB-A58定位模块驱动程序设计

/ 确保字符串终止。// 缓冲区溢出,重置。// 重置缓冲区索引。支持GPS、GLONASS、Galileo、北斗和QZSS多系统定位。case 1: // UTC时间。// 配置GPS模块(可选)// 查找GGA语句。// 启动UART接收。// USART1初始化函数。内置LNA和SAW滤波器。

zhusl6688的博客 353

第十二段:基于env的重用

现代芯片的验证通常分为两个层次, 一是模块级别( block level, 也称为IP级别、 unit级别) 验证, 二是芯片级别( 也称为SOC级别) 验证。 一个大的芯片在开发时, 是分成多个小的模块来开发的。 每个模块开发一套独立的验证环境, 通常每个模块有 一个专门的验证人员负责。 当在模块级别验证完成后, 需要做整个系统的验证。 假设某个系统分成了三个模块,如下图: 这三个模块在模块级别验证时, 分别有自己的driver和s...

年糕的博客 427

iOS-关于启动图的配置与解释

启动图 1、基本了解   设置启动图的方式有两种,一种是LaunchScreen,一种是LaunchImage。新建项目时 Xcode 会自动创建 LaunchScreen.storyboard 且默认使用 Launch Screen File 的方式展示启动图。     对于LaunchScreen,它只需要一张可拉伸的图片,在LaunchScreen.storyboard配

NewLifeBegin_ 2315

【补充篇】三万字了解AUTOSAR软件架构(一)

主要讲解了AUTOSAR软件架构的分层及各个栈的作用

weixin_47571898的博客 1125

iOS App 设置启动图(LaunchImage)

基本上所有APP都有启动图,用来过渡APP启动时的一些耗时操作(注意:启动图不是引导图,引导图得自定义VC) 下面简单说一下如何设置启动图. 1.点击 进入Assets.xcassets ,右键新建一个 Iamge Set ,重命名为 “LaunchImage” (不一定要LaunchImage,可以随意取你喜欢的名字) 2.选中LaunchImage ,在xcode的右边 设置...

wyz670083956的博客 1万+

GD32F303标准库开发:Keil5新建GD32标准库工程

GD32F303标准库开发:Keil5新建GD32标准库工程

MQ0522的博客 8933

华为OD机试真题2025双机位B卷 Java&Go 实现【朋友圈个数】

给定一组朋友关系,统计一下该朋友关系网中的朋友圈个数。 朋友圈的定义:一个朋友圈至少由3个朋友组成,且要求同一个朋友圈中的任意两个人都具有直接的朋友关系。 输入描述 输入一个朋友关系列表,如 Fiends =A.B],[A.C],IB,DI,其中的每一个元素 Friendsi表示 Friends[i][0)和 Friends [i][1] 是朋友关系 先输入一个数字 N 代表关系的总数,后面每条关系一行,两个成员以逗号分隔

MISAYAONE的博客 528

iOS 使用storyboard 更换启动页无效问题

iOS 使用storyboard 更换启动页无效问题

ochenmengo的博客 930

【嵌入式DIY实例ESP32篇】-步数计数器

在本项目中,我们将使用 ESP32 微控制器和博世的 BMI160 加速度计陀螺仪模块构建一款便携式计步器

视觉与物联智能 811

ios 开发好用的博客网址

1,Xcode8添加pch 文件的方法: http://www.jianshu.com/p/e6e0e3bbbf38

DSH0106的专栏 486

WINCC7.3破解文件

WINCC7.3硬件够破解文件,有需要的下载!WINCC7.3硬件够破解文件,有需要的下载!

IMSL CNL 7.0.0 (x86-64)Crack

IMSL CNL 7.0.0 (x86-64)Crack intel的算法库破解文件,这是C++版本的破解文件

Ios8 Xcode6 设置Launch Image 启动图片

http://www.woowen.com/swift/2014/12/12/ios8%E8%AE%BE%E7%BD%AELaunch%20Image%20%E5%90%AF%E5%8A%A8%E5%9B%BE%E7%89%87/ 如何设置App的启动图,也就是Launch Image? Step1 1.点击Image.xcassets 进入图片管理,然后右击,弹出"

onLoad1988_08的专栏 549

lwip-2.0.3

lwip是瑞典计算机科学院(SICS)的Adam Dunkels 开发的一个小型开源的TCP/IP协议栈。实现的重点是在保持TCP协议主要功能的基础上减少对RAM 的占用。

ios 设置LaunchScreen 打开APP的开始界面

Ios8Xcode6设置LaunchImage启动图 在Assets.xcassets 中右键 launch Image -->New ioslaunch Image -------- 每个 LaunchImage 对应的图像尺寸 系统 尺寸 分辨率 ios8 Retina HD5.5 1242x2208...

weixin_30916125的博客 219

深度学习工具包 DeepLearningToolbox

深度学习工具包Deprecation notice.-----This toolbox is outdated and no longer maintained.There are much better tools available for deep learning than this toolbox, e.g. [Theano](http://deeplearning.net/software/theano/), [torch](http://torch.ch/) or [tensorflow](http://www.tensorflow.org/)I would suggest you use one of the tools mentioned above rather than use this toolbox.Best, Rasmus.DeepLearnToolbox================A Matlab toolbox for Deep Learning.Deep Learning is a new subfield of machine learning that focuses on learning deep hierarchical models of data.It is inspired by the human brain's apparent deep (layered, hierarchical) architecture.A good overview of the theory of Deep Learning theory is[Learning Deep Architectures for AI](http://www.iro.umontreal.ca/~bengioy/papers/ftml_book.pdf)For a more informal introduction, see the following videos by Geoffrey Hinton and Andrew Ng.* [The Next Generation of Neural Networks](http://www.youtube.com/watch?v=AyzOUbkUf3M) (Hinton, 2007)* [Recent Developments in Deep Learning](http://www.youtube.com/watch?v=VdIURAu1-aU) (Hinton, 2010)* [Unsupervised Feature Learning and Deep Learning](http://www.youtube.com/watch?v=ZmNOAtZIgIk) (Ng, 2011)If you use this toolbox in your research please cite [Prediction as a candidate for learning deep hierarchical models of data](http://www2.imm.dtu.dk/pubdb/views/publication_details.php?id=6284)```@MASTERSTHESIS\{IMM2012-06284, author = "R. B. Palm", title = "Prediction as a candidate for learning deep hierarchical models of data", year = "2012",}```Contact: rasmusbergpalm at gmail dot comDirectories included in the toolbox-----------------------------------`NN/` - A library for Feedforward Backpropagation Neural Networks`CNN/` - A library for Convolutional Neural Networks`DBN/` - A library for Deep Belief Networks`SAE/` - A library for Stacked Auto-Encoders`CAE/` - A library for Convolutional Auto-Encoders`util/` - Utility functions used by the libraries`data/` - Data used by the examples`tests/` - unit tests to verify toolbox is workingFor references on each library check REFS.mdSetup-----1. Download.2. addpath(genpath('DeepLearnToolbox'));Example: Deep Belief Network---------------------```matlabfunction test_example_DBNload mnist_uint8;train_x = double(train_x) / 255;test_x = double(test_x) / 255;train_y = double(train_y);test_y = double(test_y);%% ex1 train a 100 hidden unit RBM and visualize its weightsrand('state',0)dbn.sizes = [100];opts.numepochs = 1;opts.batchsize = 100;opts.momentum = 0;opts.alpha = 1;dbn = dbnsetup(dbn, train_x, opts);dbn = dbntrain(dbn, train_x, opts);figure; visualize(dbn.rbm{1}.W'); % Visualize the RBM weights%% ex2 train a 100-100 hidden unit DBN and use its weights to initialize a NNrand('state',0)%train dbndbn.sizes = [100 100];opts.numepochs = 1;opts.batchsize = 100;opts.momentum = 0;opts.alpha = 1;dbn = dbnsetup(dbn, train_x, opts);dbn = dbntrain(dbn, train_x, opts);%unfold dbn to nnnn = dbnunfoldtonn(dbn, 10);nn.activation_function = 'sigm';%train nnopts.numepochs = 1;opts.batchsize = 100;nn = nntrain(nn, train_x, train_y, opts);[er, bad] = nntest(nn, test_x, test_y);assert(er < 0.10, 'Too big error');```Example: Stacked Auto-Encoders---------------------```matlabfunction test_example_SAEload mnist_uint8;train_x = double(train_x)/255;test_x = double(test_x)/255;train_y = double(train_y);test_y = double(test_y);%% ex1 train a 100 hidden unit SDAE and use it to initialize a FFNN% Setup and train a stacked denoising autoencoder (SDAE)rand('state',0)sae = saesetup([784 100]);sae.ae{1}.activation_function = 'sigm';sae.ae{1}.learningRate = 1;sae.ae{1}.inputZeroMaskedFraction = 0.5;opts.numepochs = 1;opts.batchsize = 100;sae = saetrain(sae, train_x, opts);visualize(sae.ae{1}.W{1}(:,2:end)')% Use the SDAE to initialize a FFNNnn = nnsetup([784 100 10]);nn.activation_function = 'sigm';nn.learningRate = 1;nn.W{1} = sae.ae{1}.W{1};% Train the FFNNopts.numepochs = 1;opts.batchsize = 100;nn = nntrain(nn, train_x, train_y, opts);[er, bad] = nntest(nn, test_x, test_y);assert(er < 0.16, 'Too big error');```Example: Convolutional Neural Nets---------------------```matlabfunction test_example_CNNload mnist_uint8;train_x = double(reshape(train_x',28,28,60000))/255;test_x = double(reshape(test_x',28,28,10000))/255;train_y = double(train_y');test_y = double(test_y');%% ex1 Train a 6c-2s-12c-2s Convolutional neural network %will run 1 epoch in about 200 second and get around 11% error. %With 100 epochs you'll get around 1.2% errorrand('state',0)cnn.layers = { struct('type', 'i') %input layer struct('type', 'c', 'outputmaps', 6, 'kernelsize', 5) %convolution layer struct('type', 's', 'scale', 2) %sub sampling layer struct('type', 'c', 'outputmaps', 12, 'kernelsize', 5) %convolution layer struct('type', 's', 'scale', 2) %subsampling layer};cnn = cnnsetup(cnn, train_x, train_y);opts.alpha = 1;opts.batchsize = 50;opts.numepochs = 1;cnn = cnntrain(cnn, train_x, train_y, opts);[er, bad] = cnntest(cnn, test_x, test_y);%plot mean squared errorfigure; plot(cnn.rL);assert(er<0.12, 'Too big error');```Example: Neural Networks---------------------```matlabfunction test_example_NNload mnist_uint8;train_x = double(train_x) / 255;test_x = double(test_x) / 255;train_y = double(train_y);test_y = double(test_y);% normalize[train_x, mu, sigma] = zscore(train_x);test_x = normalize(test_x, mu, sigma);%% ex1 vanilla neural netrand('state',0)nn = nnsetup([784 100 10]);opts.numepochs = 1; % Number of full sweeps through dataopts.batchsize = 100; % Take a mean gradient step over this many samples[nn, L] = nntrain(nn, train_x, train_y, opts);[er, bad] = nntest(nn, test_x, test_y);assert(er < 0.08, 'Too big error');%% ex2 neural net with L2 weight decayrand('state',0)nn = nnsetup([784 100 10]);nn.weightPenaltyL2 = 1e-4; % L2 weight decayopts.numepochs = 1; % Number of full sweeps through dataopts.batchsize = 100; % Take a mean gradient step over this many samplesnn = nntrain(nn, train_x, train_y, opts);[er, bad] = nntest(nn, test_x, test_y);assert(er < 0.1, 'Too big error');%% ex3 neural net with dropoutrand('state',0)nn = nnsetup([784 100 10]);nn.dropoutFraction = 0.5; % Dropout fraction opts.numepochs = 1; % Number of full sweeps through dataopts.batchsize = 100; % Take a mean gradient step over this many samplesnn = nntrain(nn, train_x, train_y, opts);[er, bad] = nntest(nn, test_x, test_y);assert(er < 0.1, 'Too big error');%% ex4 neural net with sigmoid activation functionrand('state',0)nn = nnsetup([784 100 10]);nn.activation_function = 'sigm'; % Sigmoid activation functionnn.learningRate = 1; % Sigm require a lower learning rateopts.numepochs = 1; % Number of full sweeps through dataopts.batchsize = 100; % Take a mean gradient step over this many samplesnn = nntrain(nn, train_x, train_y, opts);[er, bad] = nntest(nn, test_x, test_y);assert(er < 0.1, 'Too big error');%% ex5 plotting functionalityrand('state',0)nn = nnsetup([784 20 10]);opts.numepochs = 5; % Number of full sweeps through datann.output = 'softmax'; % use softmax outputopts.batchsize = 1000; % Take a mean gradient step over this many samplesopts.plot = 1; % enable plottingnn = nntrain(nn, train_x, train_y, opts);[er, bad] = nntest(nn, test_x, test_y);assert(er < 0.1, 'Too big error');%% ex6 neural net with sigmoid activation and plotting of validation and training error% split training data into training and validation datavx = train_x(1:10000,:);tx = train_x(10001:end,:);vy = train_y(1:10000,:);ty = train_y(10001:end,:);rand('state',0)nn = nnsetup([784 20 10]); nn.output = 'softmax'; % use softmax outputopts.numepochs = 5; % Number of full sweeps through dataopts.batchsize = 1000; % Take a mean gradient step over this many samplesopts.plot = 1; % enable plottingnn = nntrain(nn, tx, ty, opts, vx, vy); % nntrain takes validation set as last two arguments (optionally)[er, bad] = nntest(nn, test_x, test_y);assert(er < 0.1, 'Too big error');```[![Bitdeli Badge](https://d2weczhvl823v0.cloudfront.net/rasmusbergpalm/deeplearntoolbox/trend.png)](https://bitdeli.com/free "Bitdeli Badge")

ios添加 启动画面_iOS 两种设置启动图方式的 bug 汇总

楼主最近几天一直在纠结这个,忙到最后发现是 Apple 的锅,臣妾真搞不定呀1.单独使用 LaunchImage 来设置启动图时:①iOS9 系统的手机,在 APP 从后台通过 openURL 拉起到前台时,不会出现启动图;②但 iOS7 和 iOS8 正常。2.单独使用 LaunchScreen.storyboard 来设置启动图时:①iOS7 不支持该方式;②iOS8 系统会导致 APP 在从...

weixin_36063465的博客 384

iOS 设置启动图无效

前言:因为公司的项目是很早创建的,所以并没有LaunchScreen.storyboard。导致这次设置一直无效 1、xcode 6 新建工程会默认 LaunchScreen.storyboard ( 之前为 LaunchScreen.xib ) 来设置启动图; ...

chengjie905693的博客 586

iOS App启动图不显示的解决办法.

1. 正常来说,启动图以及App图标需按照命名规则命名, 但是命名不规范并不影响显示; 2. 设置启动图的两种方法:      (1) iOS 8—xcode 6 之后新出LaunchScreen.storyboard(LaunchScreen.xib)来设置启动图; 当系统版本高于iOS8.0默认优先会显示LaunchScreen. 需要在xcode (General里) 两处做如下

xin__dong的专栏 1万+

storyboard 苹果启动图_关于使用 LaunchScreen.storyboard 作为启动图方式的几个问题

启动图有两个默认的展示场景:①.点击 APP icon 的全新启动;②.APP 在后台,通过 UIApplication 的 openURL :方法被其他 APP 拉起到前台时会先出现启动图。iOS 8 及以上系统可以使用 LaunchScreen.storyboard ,我在用 LaunchScreen.storyboard 的时候遇到了如下几个问题:1.设置启动图为 A ,此时上述两种场景,均...

weixin_42374582的博客 387

IOS真机调试时启动图黑屏问题解决

突然发现项目运行到真机的时候,设置的LaunchScreen,启动的时候经常会出现黑屏,(并非必现)无法展示启动图的情况。 开发环境 Xcode8.3,真机系统 IOS10.3.1; 检查了一下设置方面并无异常,但以前使用的图片名是中文,现在将图片名修改为英文名称后,问题没有复现了。查了网络上也有很多遇到同样问题的人,具体案例及解决方案:案例1: 开发环境 xcode7,将系统默认的Launc

zxw_xzr的博客 1万+

iOS App图标和启动画面尺寸

注意:iOS所有图标的圆角效果由系统生成,给到的图标本身不能是圆角的。 1. 桌面图标 (app icon) for iPhone6 plus(@3x) : 180 x 180 for iPhone 6/5s/5/4s/4(@2x) : 120 x 120 2. 系统搜...

chuanao8829的博客 149

IOS8添加启动图

在IOS8之后,可以用pdf矢量图添加启动图,昨天下班时没来得及弄,今天早上来试了下。 1.Images.xcassets中添加New Launch Image,并命名为Launch Screen,之后设置属性Scale Factors为Single Vector。 2.添加LanuchScreen.xib,往里拖UIImageView控件,并设置约束如...

weixin_34419321的博客 171

small skill~

1、判断真机和模拟器#if TARGET_IPHONE_SIMULATOR #define SIMULATOR 1 #elif TARGET_OS_IPHONE #define SIMULATOR 0 #endif史上最全第三方库收集https://github.com/liuyuanming/iOSLibraryCollections 2、iOS9 汉字转编码 NSS...

weixin_30507269的博客 84

230kV/2000MVA双端柔性直流输电MMC设计与仿真实践

电压源换流器(VSC)与模块化多电平换流器(MMC)已成为现代高压直流输电与新能源并网领域的关键技术。相比传统电网换相换流器,VSC具备独立调节有功与无功、无需电网换相、可向无源网络供电等优势,而MMC通过子模块级联实现低谐波输出,显著简化滤波环节。在双端柔性直流输电系统设计中,换流站拓扑、子模块电容与IGBT选型、桥臂电抗器配合、控制保护分层架构及电磁暂态仿真验证,共同决定系统能否稳定运行。本文围绕一套230kV/2000MVA双端VSC-HVDC实际设计案例,从主接线确定、参数计算、控制策略到仿真调试逐

weixin_34226182的博客 362
上一篇: NSObject的+load和+initialize详解
下一篇: GPUImage源码解读(四)
Philm_iOS
博客等级 码龄8年 74粉丝 53原创
评论
成就一亿技术人!
拼手气红包6.0元
还能输入1000个字符
 
 条评论被折叠 查看
添加红包

请填写红包祝福语或标题

个

红包个数最小为10个

元

红包金额最低5元

当前余额3.43元 前往充值 >
需支付:10.00元
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付元
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值