macOS Monterey 12.6,MacBook Pro (16-inch, 2019)
MacCatalyst App, version support macOS 15
code:
let mainWindow = UIWindow.init(windowScene: windowSence)
mainWindow.frame = frame // Settings can cause bugs
mainWindow.rootViewController = ***
Setting the view frame of UIWindow will cause viewDidLayoutSubviews not to be called when UIViewController resizer the edge of the drag window
I expect to be able to set the initial size of the window when I open it, if I have any problems with the way I use it, please help provide the appropriate way to call it
Post
Replies
Boosts
Views
Activity
Using UIApplication openURL will open the file directly, but the file location corresponding to finder cannot be opened. There are many resource files in the folder, so it will be difficult to locate specific files if only the folder is opened