1.铺满屏幕 [self.view.window zoom:self];
2.系统原有的全屏[self.view.window toggleFullScreen:self];
注意第二种方法需要设置当前window self.window.collectionBehavior = NSWindowCollectionBehaviorFullScreenPrimary;才能生效。
1.铺满屏幕 [self.view.window zoom:self];
2.系统原有的全屏[self.view.window toggleFullScreen:self];
注意第二种方法需要设置当前window self.window.collectionBehavior = NSWindowCollectionBehaviorFullScreenPrimary;才能生效。