Warning: file_get_contents(/data/phpspider/zhask/data//catemap/9/ios/116.json): failed to open stream: No such file or directory in /data/phpspider/zhask/libs/function.php on line 167

Warning: Invalid argument supplied for foreach() in /data/phpspider/zhask/libs/tag.function.php on line 1116

Notice: Undefined index: in /data/phpspider/zhask/libs/function.php on line 180

Warning: array_chunk() expects parameter 1 to be array, null given in /data/phpspider/zhask/libs/function.php on line 181

Warning: file_get_contents(/data/phpspider/zhask/data//catemap/0/iphone/35.json): failed to open stream: No such file or directory in /data/phpspider/zhask/libs/function.php on line 167

Warning: Invalid argument supplied for foreach() in /data/phpspider/zhask/libs/tag.function.php on line 1116

Notice: Undefined index: in /data/phpspider/zhask/libs/function.php on line 180

Warning: array_chunk() expects parameter 1 to be array, null given in /data/phpspider/zhask/libs/function.php on line 181
Ios 将UIImage添加到事件标题_Ios_Iphone_Ios7_Uiimage - Fatal编程技术网

Ios 将UIImage添加到事件标题

Ios 将UIImage添加到事件标题,ios,iphone,ios7,uiimage,Ios,Iphone,Ios7,Uiimage,如何在iOS事件标题中添加UIImage EKEvent *event = [EKEvent eventWithEventStore:store]; event.title = [NSString stringWithFormat:@"Some Title"]; event.startDate ... event.endDate ... event.calendar .... 无法在EKEvent上附加文件或图像。因为没有地方可以显示图像和所有内容 解决方案:您可以将图像Url与URLSHEM

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

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

无法在EKEvent上附加文件或图像。因为没有地方可以显示图像和所有内容

解决方案:您可以将图像Url与URLSHEMA一起使用

例如:

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

参考资料:

在这种情况下,我在事件日历中添加的所有表情符号都是unicode设置的?