{"id":7357,"date":"2013-04-30T21:59:38","date_gmt":"2013-05-01T02:59:38","guid":{"rendered":"http:\/\/mjtsai.com\/blog\/?p=7357"},"modified":"2014-07-14T10:19:18","modified_gmt":"2014-07-14T14:19:18","slug":"auto-layout-shorthand","status":"publish","type":"post","link":"https:\/\/mjtsai.com\/blog\/2013\/04\/30\/auto-layout-shorthand\/","title":{"rendered":"Auto Layout Shorthand"},"content":{"rendered":"<p><a href=\"https:\/\/github.com\/rentzsch\/AutoLayoutShorthand\">Jonathan Rentzsch<\/a>:<\/p>\r\n<blockquote cite=\"https:\/\/github.com\/rentzsch\/AutoLayoutShorthand\"><p>Auto Layout Shorthand is a poor man&rsquo;s DSL wedged into a normal Objective-C dictionary literal.<\/p>\r\n<p>Each key-value pair contains enough information to create one NSLayoutConstraint. This stands in contrast to [the Visual Format Language], where one string can be used to generate multiple constraints.<\/p><\/blockquote>\r\n<p>I like how you don&rsquo;t have to put your variable names into a string or use <code>NSDictionaryOfVariableBindings()<\/code>.<\/p>","protected":false},"excerpt":{"rendered":"<p>Jonathan Rentzsch: Auto Layout Shorthand is a poor man&rsquo;s DSL wedged into a normal Objective-C dictionary literal. Each key-value pair contains enough information to create one NSLayoutConstraint. This stands in contrast to [the Visual Format Language], where one string can be used to generate multiple constraints. I like how you don&rsquo;t have to put your [&hellip;]<\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"apple_news_api_created_at":"","apple_news_api_id":"","apple_news_api_modified_at":"","apple_news_api_revision":"","apple_news_api_share_url":"","apple_news_coverimage":0,"apple_news_coverimage_caption":"","apple_news_is_hidden":false,"apple_news_is_paid":false,"apple_news_is_preview":false,"apple_news_is_sponsored":false,"apple_news_maturity_rating":"","apple_news_metadata":"\"\"","apple_news_pullquote":"","apple_news_pullquote_position":"","apple_news_slug":"","apple_news_sections":"\"\"","apple_news_suppress_video_url":false,"apple_news_use_image_component":false,"footnotes":""},"categories":[4],"tags":[200,69,941,54,74,71],"class_list":["post-7357","post","type-post","status-publish","format-standard","hentry","category-programming-category","tag-autolayout","tag-cocoa","tag-macros","tag-objective-c","tag-opensource","tag-programming"],"apple_news_notices":[],"_links":{"self":[{"href":"https:\/\/mjtsai.com\/blog\/wp-json\/wp\/v2\/posts\/7357","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/mjtsai.com\/blog\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/mjtsai.com\/blog\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/mjtsai.com\/blog\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/mjtsai.com\/blog\/wp-json\/wp\/v2\/comments?post=7357"}],"version-history":[{"count":2,"href":"https:\/\/mjtsai.com\/blog\/wp-json\/wp\/v2\/posts\/7357\/revisions"}],"predecessor-version":[{"id":9150,"href":"https:\/\/mjtsai.com\/blog\/wp-json\/wp\/v2\/posts\/7357\/revisions\/9150"}],"wp:attachment":[{"href":"https:\/\/mjtsai.com\/blog\/wp-json\/wp\/v2\/media?parent=7357"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/mjtsai.com\/blog\/wp-json\/wp\/v2\/categories?post=7357"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/mjtsai.com\/blog\/wp-json\/wp\/v2\/tags?post=7357"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}