Sid*_*Dev 3 iphone user-interface xcode ios
我需要在iOS应用程序的启动屏幕中设置背景颜色或背景图像.我想知道是否有类似的代码:
self.view.backgroundcolor=[UIColor redColor];
Run Code Online (Sandbox Code Playgroud)
谢谢
如果要为启动屏幕设置背景图像,则有两种方式:
image.axassets并添加新的LaunchImage集.UIImageView在LaunchScreen.xib并设置图像给它.如果你想设置背景颜色为启动图像不是添加UIView在LaunchScreen.xib并设置backgroundColor它propertity.
两种方式都很简单,但我更喜欢使用image.axassets LunchImage设置.
注意:如果使用image.axassetsLaunchImage,请不要忘记使用应用程序迁移此集.
| 归档时间: |
|
| 查看次数: |
11504 次 |
| 最近记录: |