简体   繁体   English

从服务器加载贴纸并在 iMessage 应用程序中显示

[英]Load stickers from the Server and show in iMessage app

I am starting work on a Sticker pack application.我开始在贴纸包应用程序上工作。 I created a new project and selected the iMessage application.我创建了一个新项目并选择了 iMessage 应用程序。

My requirements are:我的要求是:

  1. Download the stickers from the Server and show them in CollectionView.从服务器下载贴纸并在 CollectionView 中显示它们。

  2. The user should tap on the Sticker and add it to the chat thread.用户应点击贴纸并将其添加到聊天线程。

After googling many solutions I see that for sending stickers, it is necessary to set path of the image and localized description.在谷歌搜索了许多解决方案后,我发现要发送贴纸,需要设置图像路径和本地化描述。 But when we fetch the images from server we only have image server path.但是当我们从服务器获取图像时,我们只有图像服务器路径。

How i send the sticker via local path?我如何通过本地路径发送贴纸?

You can´t do that.你不能那样做。 Stickers have to be in the App Bundle.贴纸必须在 App Bundle 中。 The bundle can´t be changed from within the App.无法从应用程序内更改捆绑包。

I read some articles and saw that we can load stickers from Server to the iMessage application.我阅读了一些文章,发现我们可以将贴纸从服务器加载到 iMessage 应用程序。 But I am not sure how I can do.但我不确定我该怎么做。

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM