如何在 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"];
关于ios - 将 UIImage 添加到 EKEvent 标题,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/36903736/