0

My layout is broken when I turn on my personal hotspot but it goes well when personal hotspot is turned off.

As screen shifts to below portion, it cuts the items when Hotspot bars appear and size of the status bar becomes 40x. I also tried multiple solutions provided here but nothing is working for me.

What I tried and didn't work for me:

  1. Notification Center CGRect newFrame = [[notification.userInfo objectForKey:@"current status bar frame"] CGRectValue];
  2. Code to resize status bar with willChangeStatusBarFrame
  3. Set Navigation Bar to 'NO'
rmaddy
  • 314,917
  • 42
  • 532
  • 579
Nidhi
  • 1
  • 1
    Have use used scrollView in your app? – Mumtaz Hussain Sep 25 '19 at 09:12
  • Possible duplicate of [Personal Hotspot breaks UI layout](https://stackoverflow.com/questions/44537654/personal-hotspot-breaks-ui-layout) – Sunil Targe Sep 25 '19 at 09:15
  • You may refer to [this](http://studyswift.blogspot.com/2015/12/adjust-ui-components-programmatically.html) tutorial. – Sunil Targe Sep 25 '19 at 09:18
  • Ya I check with : https://stackoverflow.com/questions/44537654/personal-hotspot-breaks-ui-layout but that solution doesn't worked in my case .But the issue is same as shared in this post. I hvnt used scroll view – Nidhi Sep 25 '19 at 12:24
  • https://stackoverflow.com/a/30610809/6429095 Here is the solution I received after so many efforts and is completely working fine for my code. – Nidhi Oct 01 '19 at 09:03

0 Answers0