收到“无法加载源:6”调用“pushViewController”时的控制台消息??? (附代码)

发布于 2024-12-11 02:59:26 字数 413 浏览 0 评论 0原文

有什么想法为什么我在调用“pushViewController”时会看到“无法加载源:6”控制台消息?新的观点似乎还不错。代码是:

代码除了:

EKEventViewController *eventViewController = [[EKEventViewController alloc] init];
eventViewController.event = event;
eventViewController.allowsEditing = YES;
eventViewController.delegate = self;

[self.navigationController pushViewController:eventViewController animated:YES];  // <== OCCURS HERE

Any ideas why I would be seeing a "Could not load source: 6" console message when calling "pushViewController"? The new view seems to come up ok. The code is:

Code Except:

EKEventViewController *eventViewController = [[EKEventViewController alloc] init];
eventViewController.event = event;
eventViewController.allowsEditing = YES;
eventViewController.delegate = self;

[self.navigationController pushViewController:eventViewController animated:YES];  // <== OCCURS HERE

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

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

发布评论

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

评论(4

稀香 2024-12-18 02:59:26

EKEventViewController 有一个被加载的 IB 文件?也许您在 IB/nib 文件中使用的图像不再存在于您的项目中。另外,转到菜单“产品”并单击“清理构建文件夹...”(或 cmd-option-shift-K)

EKEventViewController has an IB file which gets loaded? Maybe you're using an image inside your IB/nib file which is no longer in your project. Additionally go to menu "Products" and click on "Clean Build Folder…" (or cmd-option-shift-K)

叶落知秋 2024-12-18 02:59:26

为什么不在推送之前尝试设置此视图控制器的框架。

eventViewController.view.frame = CGRectMake(…);

[self.navigationController pushViewController:eventViewController animated:YES]; 

Why don't you try to set the frame of this view controller before pushing it.

eventViewController.view.frame = CGRectMake(…);

[self.navigationController pushViewController:eventViewController animated:YES]; 
盗心人 2024-12-18 02:59:26

这似乎是 iOS 5.0 以来的新内容。我可以验证,在 iOS 4.3 下不会出现此消息。

This seems to be new since iOS 5.0. I can verify, that under iOS 4.3 this message does not appear.

尴尬癌患者 2024-12-18 02:59:26

我知道这是一个非常古老的问题,但是(这只是发生在我身上)也许这对某人有用。

假设您尝试在模拟器上测试您的应用程序:

无法加载源:6 - 某些功能在模拟器上不可用,并且您必须在真实设备上运行该应用程序。这只是意味着它无法找到与(在您的情况下)日历应用程序相关的内容。

I know this is a really old question, but (this just happened to me) maybe this will be of use to someone.

Assuming you were trying to test your app on the simulator:

Could not load source: 6 - Some features are not available on the simulator, and you have to run the app on a real device. It simply means that it cannot find the content related to (in your case) the Calendar app.

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