我试图在应用程序启动后自动全屏加载图像,但它看起来有点时髦。可以看到图像视图的外边缘 - 我该如何消除它?我的代码如下所示:
- (void)applicationDidFinishLaunching:(NSNotification *)aNotification {
NSImage *imageFromBundle = [NSImage imageNamed:@"Screen.png"];
[image setImage:imageFromBundle];
[image enterFullScreenMode:[window screen] withOptions:nil];
}
这是图像: