iOS之新建工程上下出现黑色块
来源:互联网 发布:21网夏老师c语言视频 编辑:程序博客网 时间:2024/06/05 18:19
新建一个空白工程,代码如下:
#import "AppDelegate.h"@interface AppDelegate ()@end@implementation AppDelegate- (BOOL)application:(UIApplication *)application didFinishLaunchingWithOptions:(NSDictionary *)launchOptions { // Override point for customization after application launch. self.window = [[[UIWindow alloc] initWithFrame:[UIScreen mainScreen].bounds] autorelease]; self.window.backgroundColor = [UIColor whiteColor]; [self.window makeKeyAndVisible]; return YES;}
上述代码在iPhone4显示正常,但在iPhone5以上机器出现以下问题:
以上问题产生原因主要是没有适配Launch Images导致的,需要在你的项目中添加不同分辨率的图片
(如iPhone5需要添加一个Deault-568h@2x.png 的图片,实际分辨率为640*1136)
0 0
- iOS之新建工程上下出现黑色块
- iOS之新建工程上下出现黑色块
- iOS中下载的demo出现上下部分为黑色解决办法
- Xcode 6 新建工程运行在 iOS 7 上下有黑边的问题
- Xcode 6 新建工程运行在 iOS 7 上下有黑边的问题
- iOS--新建工程需知
- cordova上下拖动页面出现黑色区域问题
- 【iOS开发之Objective-C】新建第一个工程-HelloWorld
- Zstack之新建工程
- iOS运行某些工程时屏幕上下出现黑边的解决办法
- iOS 出现蓝色块
- 初学iOS 新建工程 视频教程
- 新建一个IOS工程步骤
- 使用BitBlt复制位图,出现显示黑色块的问题
- 使用谷歌浏览器出现黑色块或者点点
- 使用谷歌浏览器出现黑色块或者点点
- iOS界面跳转出现黑色背景
- 禁止手机浏览器、微信浏览器的上下滑动露出黑色块问题
- android介绍
- 在linux下安装jdk
- PAT (Advanced Level) 1005. Spell It Right (20) string转int,哈希
- Property follows Cocoa naming convention for returning 'owned' objects 错误解决办法
- Scrapy中用cookie模拟登陆新浪微博
- iOS之新建工程上下出现黑色块
- 测试String类的intern方法
- CSS-动画
- 环境变量的解释和配置 以及命令行运行java程序
- java多线程使用总结
- 线性表的顺序表示和实现
- SQL脚本积累之四-----if...else...使用示例
- [CortexM0--stm32f0308]Option Byte
- SnappyDB—Android上的NoSQL数据库