<?xml version="1.0" encoding="utf-8" standalone="yes"?>
<oembed>
  <author_name>anthrgrnwrld</author_name>
  <author_url>https://blog.hatena.ne.jp/anthrgrnwrld/</author_url>
  <blog_title>MILLEN BOX</blog_title>
  <blog_url>https://anthrgrnwrld.hatenablog.com/</blog_url>
  <categories>
  </categories>
  <description>画面サイズのwidthが320のデバイスとそれよりも大きいデバイスで異なった処理をしたいケースが出てきました。 使用しているiOSデバイスが何であるか、ばっちり取得出来るクラスもあるみたいですが( 端末情報(デバイス情報)を取得する - iOSアプリ開発の逆引き辞典 ) 、今回の私の用途では、使用しているデバイスのサイズを取得するのみで十分と考えました。 以下のページを参考にしました。 011 画面サイズを取得する - Swift Docs 自分ポイント 取得方法と、取得したwidthによって異なった処理を行うコード例は以下です。 let myBoundSize = UIScreen.main…</description>
  <height>190</height>
  <html>&lt;iframe src=&quot;https://hatenablog-parts.com/embed?url=https%3A%2F%2Fanthrgrnwrld.hatenablog.com%2Fentry%2F2015%2F09%2F09%2F201747&quot; title=&quot;使用しているデバイスの画面サイズを取得する方法 [swift1.2] [UIScreen] - MILLEN BOX&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></image_url>
  <provider_name>Hatena Blog</provider_name>
  <provider_url>https://hatena.blog</provider_url>
  <published>2015-09-09 20:17:47</published>
  <title>使用しているデバイスの画面サイズを取得する方法 [swift1.2] [UIScreen]</title>
  <type>rich</type>
  <url>https://anthrgrnwrld.hatenablog.com/entry/2015/09/09/201747</url>
  <version>1.0</version>
  <width>100%</width>
</oembed>
