{"id":1624,"date":"2017-07-31T14:42:41","date_gmt":"2017-07-31T05:42:41","guid":{"rendered":"http:\/\/www.chihayafuru.jp\/tech\/?p=1624"},"modified":"2017-07-31T14:43:12","modified_gmt":"2017-07-31T05:43:12","slug":"autolayout%e3%81%8c%e6%9c%9f%e5%be%85%e9%80%9a%e3%82%8a%e3%81%ab%e5%83%8d%e3%81%8b%e3%81%aa%e3%81%84","status":"publish","type":"post","link":"https:\/\/www.chihayafuru.jp\/tech\/index.php\/archives\/1624","title":{"rendered":"[iOS] AutoLayout\u304c\u671f\u5f85\u901a\u308a\u306b\u50cd\u304b\u306a\u3044"},"content":{"rendered":"<h3>\u539f\u56e0<\/h3>\n<p>\u65e7\u6765\u306e <b>AutoSizing<\/b> \u304c\uff08\u30c7\u30d5\u30a9\u30eb\u30c8\u3067\uff09\u6709\u52b9\u306b\u306a\u3063\u305f\u307e\u307e\u3067\u3001\u3042\u305f\u3089\u3057\u3044 <b>AutoLayout<\/b> \u306f\u7121\u52b9\u306b\u306a\u3063\u3066\u3044\u308b\u3002<\/p>\n<p>UI\u30aa\u30d6\u30b8\u30a7\u30af\u30c8\u306e\u30d7\u30ed\u30d1\u30c6\u30a3 <b>translatesAutoresizingMaskIntoConstraints<\/b> \u304c\u6709\u52b9\u306b\u306a\u3063\u3066\u3044\u308b\u3002<\/p>\n<h3>AutoSizing\u3092\u7121\u52b9\u306b\u3059\u308b(=AutoLayout\u3092\u6709\u52b9\u306b\u3059\u308b)\u30b3\u30fc\u30c9\u306e\u4f8b<\/h3>\n<pre class=\"lang:objc decode:true \" >UIActivityIndicatorView *indicator = [[UIActivityIndicatorView alloc] initWithActivityIndicatorStyle:UIActivityIndicatorViewStyleGray];\r\n\r\nindicator.translatesAutoresizingMaskIntoConstraints = NO;  \/\/ !!! HERE !!!\r\n<\/pre>\n","protected":false},"excerpt":{"rendered":"<p>\u539f\u56e0 \u65e7\u6765\u306e AutoSizing \u304c\uff08\u30c7\u30d5\u30a9\u30eb\u30c8\u3067\uff09\u6709\u52b9\u306b\u306a\u3063\u305f\u307e\u307e\u3067\u3001\u3042\u305f\u3089\u3057\u3044 AutoLayout \u306f\u7121\u52b9\u306b\u306a\u3063\u3066\u3044\u308b\u3002 UI\u30aa\u30d6\u30b8\u30a7\u30af\u30c8\u306e\u30d7\u30ed\u30d1\u30c6\u30a3 translatesAutoresizingMaskInto [&hellip;]<\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"closed","ping_status":"closed","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[3],"tags":[7],"class_list":["post-1624","post","type-post","status-publish","format-standard","hentry","category-memo","tag-ios"],"_links":{"self":[{"href":"https:\/\/www.chihayafuru.jp\/tech\/index.php\/wp-json\/wp\/v2\/posts\/1624","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/www.chihayafuru.jp\/tech\/index.php\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/www.chihayafuru.jp\/tech\/index.php\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/www.chihayafuru.jp\/tech\/index.php\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/www.chihayafuru.jp\/tech\/index.php\/wp-json\/wp\/v2\/comments?post=1624"}],"version-history":[{"count":11,"href":"https:\/\/www.chihayafuru.jp\/tech\/index.php\/wp-json\/wp\/v2\/posts\/1624\/revisions"}],"predecessor-version":[{"id":1635,"href":"https:\/\/www.chihayafuru.jp\/tech\/index.php\/wp-json\/wp\/v2\/posts\/1624\/revisions\/1635"}],"wp:attachment":[{"href":"https:\/\/www.chihayafuru.jp\/tech\/index.php\/wp-json\/wp\/v2\/media?parent=1624"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/www.chihayafuru.jp\/tech\/index.php\/wp-json\/wp\/v2\/categories?post=1624"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/www.chihayafuru.jp\/tech\/index.php\/wp-json\/wp\/v2\/tags?post=1624"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}