Why is it cutting the sides off? It looks perfectly fine in storyboard. I set the size to 4.7 inch iPhone and applied the necessary constraints, but this happens.
Asked
Active
Viewed 38 times
3
-
"the necessary constraints"? What does that mean? – Droppy Jul 21 '16 at 08:23
-
1Sounds silly, but make sure you have the correct resolution of splash screens set up. On certain phones I've noticed that the incorrect size would clip the screen to the size of the splash screen. Apple is your friend it just werks and all that. – Mathijs Segers Jul 21 '16 at 08:24
-
Constraints to make them stay where they need to stay. But I don't understand the chipping of left and right of the screen. – Rakshith G B Jul 21 '16 at 08:24
-
@MathijsSegers yeah all of them are in correct sizes. – Rakshith G B Jul 21 '16 at 08:26
-
2http://stackoverflow.com/questions/17761967/why-uiscreen-mainscreen-bounds-is-not-returning-full-screen-size?rq=1 – Mathijs Segers Jul 21 '16 at 08:26
-
1Well now, if you're not sharing any code, screens etc. and just assume everything you did is correct we can't really help you. – Mathijs Segers Jul 21 '16 at 08:27
-
@MathijsSegers Thanks! That image was missing. Works perfect now. – Rakshith G B Jul 21 '16 at 08:28
1 Answers
3
Sounds silly, but make sure you have the correct resolution of splash screens set up. On certain phones I've noticed that the incorrect size would clip the screen to the size of the splash screen. Apple is your friend it just werks and all that.
So it's a duplicate of this Why [UIScreen mainScreen].bounds] is not returning full screen size?

Community
- 1
- 1

Mathijs Segers
- 6,168
- 9
- 51
- 75