<?xml version="1.0" encoding="utf-8" standalone="yes"?>
<oembed>
  <author_name>gothedistance</author_name>
  <author_url>https://blog.hatena.ne.jp/gothedistance/</author_url>
  <blog_title>Life is Really Short, Have Your Life!!</blog_title>
  <blog_url>https://aroundthedistance.hatenadiary.jp/</blog_url>
  <categories>
    <anon>iOS</anon>
    <anon>Swift</anon>
  </categories>
  <description>iOS6から導入されたというこのAuto Layout. ユニバーサルアプリを作る場合にframeをチマチマいじって(別にそんなに大変でもないと思うけど) 調整しなくても良いというメリットがあるようだ。具体的には親のViewからどれだけのマージンを取るかを上下左右(左右と上と下のどちらか)設定すればよい。例えば親のUIViewに対して左右の横のマージンを10ずつとると、親のViewから20のマージンを抜いたサイズに自動調整してくれる。ただ、固定サイズのViewをグリッド形式で配置する場合は、滅茶苦茶めんどい。要は電話のキーパッドのようなUIを作る場合が相当辛かった。思いついただけでも、これだけ…</description>
  <height>190</height>
  <html>&lt;iframe src=&quot;https://hatenablog-parts.com/embed?url=https%3A%2F%2Faroundthedistance.hatenadiary.jp%2Fentry%2F2014%2F11%2F18%2F015304&quot; title=&quot;iOSのAutoLayoutのON/OFFを使い分けたい件 - Life is Really Short, Have Your Life!!&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>2014-11-18 01:53:04</published>
  <title>iOSのAutoLayoutのON/OFFを使い分けたい件</title>
  <type>rich</type>
  <url>https://aroundthedistance.hatenadiary.jp/entry/2014/11/18/015304</url>
  <version>1.0</version>
  <width>100%</width>
</oembed>
