0

I have an 2 ViewController first ViewController in Portrait mode and SecondViewController in Landscape mode. used category to SecondViewController in LandScapemode.

My requirement is my SecondViewController Status bar in landscape mode i want it to Portrait mode. how may i do this

[[UIApplication sharedApplication] setStatusBarOrientation:UIInterfaceOrientationPortrait animated:NO]; 

i have tried this line of code but not work how may i do this

thanks in advance.

Hussain Shabbir
  • 14,801
  • 5
  • 40
  • 56
Jitendra
  • 5,055
  • 2
  • 22
  • 42

0 Answers0