0

View Controller status bar is overlapping in new iPhone like ios 8Status Bar image When it's redirecting to another view controller , existing view screen status bar is displaying partially. I am using this code to redirect

SecondView *view = [[SecondView alloc] initWithNibName:nil bundle:nil];

[self presentViewController:view animated:YES completion:NULL];
Mohammad Arman
  • 508
  • 4
  • 13
  • check this: https://stackoverflow.com/a/59085164/7851805 – Nick Dec 06 '19 at 13:16
  • it is iOS 13 feature. – phani Dec 06 '19 at 13:16
  • 2
    Does this answer your question? [New Xcode version 11.2.1 build app layout problem](https://stackoverflow.com/questions/59083062/new-xcode-version-11-2-1-build-app-layout-problem) – Nick Dec 06 '19 at 13:21

1 Answers1

1

This is not bug of status bar, this is feature of iOS 13, If you don't want this than you can set modalPresentationStyle to fullscreen. Like,

SecondView *view = [[SecondView alloc] initWithNibName:nil bundle:nil];
view.modalPresentationStyle = UIModalPresentationFullScreen;
[self presentViewController:view animated:YES completion:NULL];
Komal Goyani
  • 779
  • 6
  • 25