iphone GData 电子表格无法识别的选择器

发布于 2024-12-03 20:17:08 字数 217 浏览 3 评论 0原文

我已经使用 MAC 的 GData 电子表格代码编写了相应的 iPhone 版本(相同的代码),但抛出了异常: [GDataEntryBase worksheetsFeedURL]:无法识别的选择器发送到实例... 在我看来,当从电子表格提要中获取条目时,我得到了一组 GDataEntryBase (iPhone 版本)而不是 GDataEntrySpreadsheet。 任何帮助将不胜感激!

谢谢。

I've used the GData spreadsheets code for MAC to write a corresponding iPhone version (the same code), but I get a exception thrown:
[GDataEntryBase worksheetsFeedURL]: unrecognized selector sent to instance ...
It appears to me that when fetching the entries from the spreadsheet feed, I got a array of GDataEntryBase (iPhone version) instead of GDataEntrySpreadsheet.
Any help will be highly appreciated!

Thank you.

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

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

发布评论

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

评论(1

乜一 2024-12-10 20:17:08

当所需的子类未编译并链接到应用程序中时,将创建基类。

确保为您的项目设置了 -ObjC 链接器标志,并且为包含电子表格类的目标定义了 -DGDATA_REQUIRE_SERVICE_INCLUDES=1-DGDATA_INCLUDE_SPREADSHEET_SERVICE=1。 (在 GData.xcodeproj > Build Settings > Other Linker Flags 中)

这些内容在 BuildingTheLibrary 项目的 wiki 页面。

The base class is created when the needed subclasses aren't compiled and linked into the application.

Be sure the -ObjC linker flag is set for your project, and that -DGDATA_REQUIRE_SERVICE_INCLUDES=1 and -DGDATA_INCLUDE_SPREADSHEET_SERVICE=1 are defined for the target that includes the spreadsheet classes. ( in GData.xcodeproj > Build Settings > Other Linker Flags )

These are discussed on the BuildingTheLibrary wiki page for the project.

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