ios - 将 UIImage 添加到 EKEvent 标题

标签 ios iphone ios7 uiimage

如何在 iOS 事件标题中添加 UIImage

EKEvent *event = [EKEvent eventWithEventStore:store];
event.title = [NSString stringWithFormat:@"Some Title"];
event.startDate ...
event.endDate ...
event.calendar ....

最佳答案

无法在 EKEvent 上附加文件或图像。因为没地方展示Images and All。

解决方案:您可以将图像 Url 与 URLSchema 结合使用。

示例:

event.URL = [NSURL URLWithString:@"YOUR_IMAGE_URL"];

引用:EKCalendarItem Class Reference

关于ios - 将 UIImage 添加到 EKEvent 标题,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/36903736/

相关文章:

ios - 如何向 Storyboard快速创建的 UIBarButtonItem 添加 Action ?

ios - TDD:单元测试异步调用

ios - 选择语句 SQLite 和 iOS

iphone - 构建自己的 "SDK"放入其他第三个应用程序

iOS 7 仅在某些时候使用自定义交互过渡

ios - 自动布局不适合 iphone 6 中的 UITextfield

ios - 关于电话通讯录iOS排序的信息

ios - UIWebView 日志消息 iOS 7

ios - Xcode 5 文档窗口缺少 sdk 指南和示例的完整概述

iphone - Cocoas2d 通过 CGPoint 获取 Sprite