简体   繁体   English

迅捷页面:加载远程图像

[英]Swift pages: Load remote image

I'm trying to load a remote image with the following code: 我正在尝试使用以下代码加载远程图像:

//:  ![Xcode icon](http://devimages.apple.com.edgekey.net/assets/elements/icons/128x128/xcode.png "Some hover text")

But when I switch to "Show rendered markup" I only see the "Xcode icon" text. 但是,当我切换到“显示渲染的标记”时,我只会看到“ Xcode图标”文本。

在此处输入图片说明

Any of you knows why the swift pages are not showing the image? 你们谁知道为什么快速页面不显示图像? or what do I need to do for the swift pages to show the images? 或快速页面显示图像我需要做什么?

I'll really appreciate your help. 非常感谢您的帮助。

I believe playgrounds will not load remote image for you, only quickhelp using that format will.. 我相信游乐场不会为您加载远程图像,只有使用该格式的快速帮助才会..

To load an image download png you want to show, add it to your playground resources and load using: 要加载要显示的图像下载png,请将其添加到您的游乐场资源并使用以下方法加载:

//: ![Xcode icon](xcode.png)

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

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