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?
Asked
Active
Viewed 138 times
1 Answers
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
-
I actually develop under iOS, as mentioned. So I am not sure those methods apply – Andrew Smith Jun 06 '22 at 15:46