简体   繁体   English

UIView Retina 4不起作用

[英]UIView Retina 4 doesn't work

I'm trying to update my application to catter for iPhone 5 4 inch retina screen. 我正在尝试更新我的应用程序以适应iPhone 5 4英寸视网膜屏幕。

I'm using custom nibs for different screen size versions as I want to show something different and make use of bigger screen. 我要为不同的屏幕尺寸版本使用自定义笔尖,因为我想显示一些不同的东西并利用更大的屏幕。

I've created another nib and I'm properly calling it from initWithNib method. 我创建了另一个笔尖,并从initWithNib方法正确调用了它。

This is what I'm getting: 这就是我得到的:

在此处输入图片说明

It's only a start, I've setted background color of the View to black, but as you can see simiulator isn't scalling the view up. 这只是一个开始,我已将“视图”的背景色设置为黑色,但是如您所见,模拟器并未按比例放大视图。 I don't know why. 我不知道为什么 In IB there is 4 Retina View type selected. 在IB中,选择了4种Retina View类型。 The dimensions are ok. 尺寸还可以。 I've checked everything I though of and still the same result. 我检查了所有内容,但结果仍然相同。

Any ideas? 有任何想法吗?

UPDATE 更新

Here are my settings: 这是我的设置:

在此处输入图片说明

在IB中,您是否在“模拟指标”面板中为顶部栏或底部栏设置了任何内容,因为它们会导致视图相应缩小?

Ok... I was just setting the frame in my app delegate and it was causing this issue. 好的...我只是在我的应用程序委托中设置框架,这导致了此问题。 I need to look at my code more :) 我需要更多地查看我的代码:)

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM