View open in iPhone 5s and 5c ( iOS 7.1 ) like iPhone 4s screen

送分小仙女□ 提交于 2020-01-04 04:43:05

问题


I have a problem with my screen size in My app.

For example i build app that have a single view.

- (void)viewDidLoad {
[super viewDidLoad];


UIView *testView = [[UIView alloc]initWithFrame:CGRectMake(0, 0, self.view.frame.size.width, self.view.frame.size.height)];
testView.backgroundColor = [UIColor redColor];
[self.view addSubview:testView];

}

In simulator (5 /5s iOS 8.1) the app open fine :

In my iPhone ( 5s iOS 7.1 ) the app does't stretch for all the screen : You can see the black color in My print screen.

new update: I download 7.1 simulator and the problem continues.

Development target in general is - 7.0

What can be done to solve it ?


回答1:


I was finally able to solve the problem.

I do not know if it's the perfect solution but it works on all devices and all versions.

If someone blow with such a problem has to do this : In General --> App Icons and Launch Images --> Launch Images Source

press Migrate and its works (-:

I hope I was able to help those who stuck with the same problem.



来源:https://stackoverflow.com/questions/27250010/view-open-in-iphone-5s-and-5c-ios-7-1-like-iphone-4s-screen

标签
易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!