开发者

Why is my window disappearing?

开发者 https://www.devze.com 2023-01-13 01:08 出处:网络
I\'m writing a program in objective-c but when I build and go the window is not loa开发者_StackOverflow社区ding. I can click on the .xib file and tweak the interface but when I run the program the GUI

I'm writing a program in objective-c but when I build and go the window is not loa开发者_StackOverflow社区ding. I can click on the .xib file and tweak the interface but when I run the program the GUI is not loading. Any ideas on why this is happening.

NOTE: I do see a menu bar that shows that my application is running but the GUI is not visible.


More description is necessary, but at a first guess, I'd say your window's "visible at runtime" box is unchecked in IB.

Beyond that, we need to know:

What kind of application is it? Document-based, or just a plain application? Are there any runtime errors in the console? Compiler warnings you've ignored? Is your window outlet connected to the window? Is there any code executed at startup (like -application:didFinishLaunching: or -windowControllerDidLoadNib or -awakeFromNib)? If so, list it.

0

精彩评论

暂无评论...
验证码 换一张
取 消