<?xml version="1.0" encoding="utf-8" standalone="yes"?>
<oembed>
  <author_name>gupuru</author_name>
  <author_url>https://blog.hatena.ne.jp/gupuru/</author_url>
  <blog_title>Three.jsを使って、作ってみた</blog_title>
  <blog_url>https://gupuru.hatenablog.jp/</blog_url>
  <categories>
    <anon>Swift</anon>
  </categories>
  <description>今回は、Swiftを使って画像を表示する方法を書きます。 具体的に言いますと、UIImageViewを使っていきます。コードを書く前に、画像を準備します。 ドラッグ・アンド・ドロップで画像を追加できます。 ちなみに、今回、使う画像はコレ↓です。 画像が準備出来たら、コードを書いていきます。 こんな感じです↓ let img:UIImage = UIImage(named:&quot;photo.png&quot;) let iv:UIImageView = UIImageView(image:img) iv.frame = CGRectMake(50,50, 100, 100) self.view.addSubv…</description>
  <height>190</height>
  <html>&lt;iframe src=&quot;https://hatenablog-parts.com/embed?url=https%3A%2F%2Fgupuru.hatenablog.jp%2Fentry%2F2014%2F06%2F23%2F181146&quot; title=&quot;Swift  画像を表示する　UIImageView - Three.jsを使って、作ってみた&quot; class=&quot;embed-card embed-blogcard&quot; scrolling=&quot;no&quot; frameborder=&quot;0&quot; style=&quot;display: block; width: 100%; height: 190px; max-width: 500px; margin: 10px 0px;&quot;&gt;&lt;/iframe&gt;</html>
  <image_url>http://cdn-ak.f.st-hatena.com/images/fotolife/g/gupuru/20140622/20140622110503.png</image_url>
  <provider_name>Hatena Blog</provider_name>
  <provider_url>https://hatena.blog</provider_url>
  <published>2014-06-23 18:11:46</published>
  <title>Swift  画像を表示する　UIImageView</title>
  <type>rich</type>
  <url>https://gupuru.hatenablog.jp/entry/2014/06/23/181146</url>
  <version>1.0</version>
  <width>100%</width>
</oembed>
