当用户按下我的主视图时,我需要以编程方式创建一个类似HUD的窗口.这是我使用的代码,但我只得到一个标准窗口.
videoWindow= [[NSPanel alloc]
initWithContentRect:NSMakeRect(200.0, 200.0, 300, 200)
styleMask:NSTitledWindowMask | NSClosableWindowMask
backing:NSBackingStoreBuffered defer:YES];
[videoWindow makeKeyAndOrderFront:nil];
Run Code Online (Sandbox Code Playgroud)
也许我没有使用正确的标志,但我没有在文档或Google上找到.有什么想法吗?
| 归档时间: |
|
| 查看次数: |
3316 次 |
| 最近记录: |