SimpleEKDemo 示例,允许编辑 = YES,但仅显示“完成” iPad 中的按钮
SimpleEKDemo 示例是通过项目设置的构建标签中的“目标设备系列 = iPhone”来交付的。它适用于 iPhone 和 iPad,“编辑”栏按钮显示在 EKEventViewController 中。
但是,如果我将“目标设备系列”更改为“iPad”或“iPhone/Ipad”,它仍然可以在 iPhone 模拟器和设备中运行,但不能在 iPad 模拟器或设备中运行。无论 allowedEditing 配置为 YES 或 NO,EKEventViewController 都会在 iPad 模拟器或设备中显示“完成”栏按钮而不是“编辑”。
我将 EventKit 框架部署到我自己的项目和 Kal NativeCal 示例中,但遇到了同样的问题。
我搜索了苹果开发论坛和互联网,但没有有关此问题的信息。
如果您之前遇到过同样的问题或有任何建议,请提供帮助。
谢谢。
顺便说一句,一些开发环境信息供参考:
- Mac OS 10.6.5
- Xcode 3.2.5
- Project Base SDK: 4.2
- Project iOS Deployment Target: 4.2
The SimpleEKDemo example is delivered with "Targeted Device Family = iPhone" in the Build tag of Project Settings. It works for both iPhone and iPad, the "Edit" barButton showed in the EKEventViewController.
However, if I changed the "Targeted Device Family" to either "iPad" or "iPhone/Ipad", it is still working in iPhone simulator and device, but not the iPad simulator or device. No matter the allowsEditing is configured to YES or NO, the EKEventViewController will show "Done" barButton instead of "Edit" in the iPad simulator or device.
I deployed the EventKit framework to my own project and the Kal NativeCal Example and had the same issue.
I searched apple development forum and internet but no information on this issue.
If you had the same issue before or have any suggestion, please help.
Thanks.
BTW, a few development environment information for reference:
- Mac OS 10.6.5
- Xcode 3.2.5
- Project Base SDK: 4.2
- Project iOS Deployment Target: 4.2
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(1)
刚刚从 https://devforums.apple.com/message/352279 找到了答案。
modalInPopover 必须配置为 NO。例如:
eventViewController.modalInPopover = NO;
Just found the answer from https://devforums.apple.com/message/352279.
The modalInPopover must be configured as NO. For example:
eventViewController.modalInPopover = NO;