0

I want solutions to overcome this error.

I am getting an error while I'm compiling and building up my iOS project. I got an error in IQKeyboardManager at this place:

UIWindow *originalKeyWindow = [[UIApplication sharedApplication] keyWindow];

and one another place where I got this error is also the same:

CGRect statusBarFrame = [[UIApplication sharedApplication] statusBarFrame];

Can anyone have solutions? Please give me... Thanks in advance.

Tamás Sengel
  • 55,884
  • 29
  • 169
  • 223
Pavan Gandhi
  • 1,729
  • 1
  • 22
  • 36

1 Answers1

-2

Use this

UIWindow * originalKeyWindow = [[[UIApplication sharedApplication] delegate]window];

And swift

let originalKeyWindow: UIWindow? = (UIApplication.shared.delegate?.window)!
Lalit kumar
  • 1,797
  • 1
  • 8
  • 14