xib 的变化导致崩溃

发布于 2024-11-27 21:28:05 字数 283 浏览 6 评论 0原文

xib 的更改导致其崩溃。 我正在使用 xcode 4(即版本 4.0.2)编写一个在早期版本中启动的程序。 我写了很多代码,除了调试时经常崩溃之外,一切都很好。 然后我对一个 xib 文件进行了一些更改,从此它无法运行;在主函数中终止 int retVal = UIApplicationMain(argc, argv, nil, nil); 并出现错误 Thread 1: Program receive signal: 'SIGABRT'

我不知道是什么原因造成的,我需要帮助。

Changes in xib causing it to crash.
I am using xcode 4 (ie. version 4.0.2) to write a program that I started in earlier versions.
I have written a lot of code and apart from frequent crashes during debug, all was fine.
Then I make some changes in one xib file, and ever since it fails to run; terminating in the main function on line int retVal = UIApplicationMain(argc, argv, nil, nil); with error Thread 1: Program received signal: 'SIGABRT'

I dont know what is causing this, I need help.

如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

扫码二维码加入Web技术交流群

发布评论

需要 登录 才能够评论, 你可以免费 注册 一个本站的账号。

评论(1

太阳哥哥 2024-12-04 21:28:05

以编程方式加载笔尖怎么样?只需将 nil 更改为你的笔尖名称即可。

CustomViewController* customViewController = [[CustomViewController alloc] initWithNibName:nil bundle:nil]

What about programmatically loading the nib? Just change nil to your nib's name.

CustomViewController* customViewController = [[CustomViewController alloc] initWithNibName:nil bundle:nil]
~没有更多了~
我们使用 Cookies 和其他技术来定制您的体验包括您的登录状态等。通过阅读我们的 隐私政策 了解更多相关信息。 单击 接受 或继续使用网站,即表示您同意使用 Cookies 和您的相关数据。
原文