我正试图找到一种方法来创建MSStickers与图片托管在网络上。我可以用本地图像创建MSStickers,例如:
NSString *imagePath = [[NSBundle mainBundle] pathForResource: @"image_name"
ofType: @"png"];
NSURL *imageURL = [NSURL fileURLWithPath: urlString];
MSSticker *sticker = [[MSSticker alloc] initWithContentsOfFileURL: stickerURL
localizedDescription: @"my-sticker"
error: &err];但我不能这样做:
NSString *imageURLString = @"https://my-cdn/my-sticker.png";
NSURL *imageURL = [NSURL urlWithString: urlString];
MSSticker *sticker = [[MSSticker alloc] initWithContentsOfFileURL: stickerURL
localizedDescription: @"my-sticker"
error: &err];发布于 2016-08-22 22:46:22
不,暂时不可能。但是你可以这样做,这离你想要的也不远:
https://stackoverflow.com/questions/39086845
复制相似问题