My application works fine with all devices but for iphone Xr and Xs Max Navigation bar is half visible. While I take screen shot it looks fine but in simulator it looks like this. I am not having a real device(iphone Xr and Xs Max). Can any one guide, what should I do!
Asked
Active
Viewed 100 times
0
-
Are you using storyboard or programatically you created the views? – Faysal Ahmed Mar 17 '20 at 05:32
-
I am using storyboard – Niharika Mar 17 '20 at 05:33
-
I think you gave your view top constraint to superview, so change your constraint to safearea then check – Jignesh Mayani Mar 17 '20 at 05:33
-
The top and bottom constraint should be change superview to safe area. – Faysal Ahmed Mar 17 '20 at 05:34
-
For more: https://stackoverflow.com/questions/44492404/safe-area-of-xcode-9 – Faysal Ahmed Mar 17 '20 at 05:38
-
@FaysalAhmed but my screen looks fine with IphoneXS and iphone X ! – Niharika Mar 18 '20 at 07:01
-
Have you tested in a real device? – Faysal Ahmed Mar 18 '20 at 07:14
-
@FaysalAhmed for Iphone XS i have tested with real device. – Niharika Mar 18 '20 at 07:19