0

I’m an iOS/iPad app developer, and now that my app runs on Mac OS I’m seeing an issue where the user can freely change the size of the app’s frame, resulting in UI issues with my custom UIVew drawing code. Is there a way to register for a notification of some kind, so I can do a screen layout update?

Andrew Smith
  • 2,919
  • 2
  • 22
  • 25

1 Answers1

0

If you develop under macOS, you should most probably use NSWindow, so in that case you can subcribe to NSWindowDidResizeNotification. More details here - https://developer.apple.com/documentation/appkit/nswindowdidresizenotification

Also you can use UIWindowDelegate method - also can check related to this method and the same issue

Evgenii Shishko
  • 142
  • 2
  • 8