收到“无法加载源:6”调用“pushViewController”时的控制台消息??? (附代码)
有什么想法为什么我在调用“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 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(4)
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)为什么不在推送之前尝试设置此视图控制器的框架。
Why don't you try to set the frame of this view controller before pushing it.
这似乎是 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.
我知道这是一个非常古老的问题,但是(这只是发生在我身上)也许这对某人有用。
假设您尝试在模拟器上测试您的应用程序:
无法加载源: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.