Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

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 ?

like image 557
Roei Nadam Avatar asked Dec 07 '25 22:12

Roei Nadam


1 Answers

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.

like image 163
Roei Nadam Avatar answered Dec 09 '25 15:12

Roei Nadam



Donate For Us

If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!