Search code examples
objective-cios7

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


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 :

a busy cat

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.

a busy cat

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

a busy cat

Development target in general is - 7.0

What can be done to solve it ?


Solution

  • 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

    a busy cat

    press Migrate and its works (-:

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