{"id":168,"date":"2014-08-06T07:29:27","date_gmt":"2014-08-06T05:29:27","guid":{"rendered":"http:\/\/www.albertopasca.it\/whiletrue\/?p=168"},"modified":"2018-05-25T14:06:41","modified_gmt":"2018-05-25T12:06:41","slug":"user-defined-runtime-attributes","status":"publish","type":"post","link":"https:\/\/www.albertopasca.it\/whiletrue\/user-defined-runtime-attributes\/","title":{"rendered":"[Objc] User defined runtime attributes"},"content":{"rendered":"<p>User defined runtime attributes are the hidden gem of Xcode\u2019s Interface Builder. Available since Xcode 4 and iOS 5, they provide the ability to configure properties of a view that you would otherwise be unable to configure in Interface Builder.<\/p>\n<p><!--more--><\/p>\n<p><img data-recalc-dims=\"1\" loading=\"lazy\" decoding=\"async\" class=\"aligncenter\" src=\"https:\/\/i0.wp.com\/ios-blog.co.uk\/wp-content\/uploads\/2014\/04\/user-defined-runtime-attributes-300x282.png?resize=300%2C282\" width=\"300\" height=\"282\" \/><\/p>\n<p>As an advocate for the separation of concerns, I believe we should do in Interface Builder as much interface configuration as possible. Although runtime attributes are often overlooked, they can lead to much cleaner view controller code \u2013 something we can all benefit from.<\/p>\n<p>&nbsp;<\/p>\n<h5>Attribute Types<\/h5>\n<p>Below is a list of the available attribute types and the corresponding property type.<\/p>\n<p><strong>Boolean<\/strong>\u00a0\u2013 BOOL<br \/>\n<strong>Number<\/strong>\u00a0\u2013 NSNumber * or any numeric scalar, e.g. NSInteger<br \/>\n<strong>String<\/strong>\u00a0\u2013 NSString *<br \/>\n<strong>Point<\/strong>\u00a0\u2013 CGPoint<br \/>\n<strong>Size<\/strong>\u00a0\u2013 CGSize<br \/>\n<strong>Rect<\/strong>\u00a0\u2013 CGRect<br \/>\n<strong>Range<\/strong>\u00a0\u2013 NSRange<br \/>\n<strong>Color<\/strong>\u00a0\u2013 UIColor *<\/p>\n<p>There are also the following special types:<\/p>\n<p><strong>Nil<\/strong>\u00a0\u2013 this special type doesn\u2019t allow you to set a value, it is just a way of specifying that the property should be set to nil<br \/>\n<strong>Localized String<\/strong>\u00a0\u2013 the value here is a key to look up in the strings file for the current locale, the property is set to the corresponding localized string<\/p>\n<h5>Simple Examples<\/h5>\n<p>Configuring a view\u2019s underlying\u00a0<strong>CALayer<\/strong>\u00a0is not possible in Interface Builder\u2019s Attributes Inspector. But with runtime attributes we can easily give the view a border and rounded corners by setting the\u00a0<strong>layer.borderWidth<\/strong>\u00a0and\u00a0<strong>layer.cornerRadius<\/strong>key paths, as shown below.<\/p>\n<p><img data-recalc-dims=\"1\" loading=\"lazy\" decoding=\"async\" class=\"aligncenter\" src=\"https:\/\/i0.wp.com\/ios-blog.co.uk\/wp-content\/uploads\/2014\/04\/calayer-setup-300x127.png?resize=300%2C127\" width=\"300\" height=\"127\" \/><\/p>\n<p>Configuring a custom control has never been easier! For example, if you create your own range slider (like a UISlider but with two thumbs to specify a minimum and maximum value in a range), and add it to a view in Interface Builder, then you can configure it as follows to avoid cluttering the view controller with unnecessary view configuration code.<\/p>\n<p><img data-recalc-dims=\"1\" loading=\"lazy\" decoding=\"async\" class=\"aligncenter\" src=\"https:\/\/i0.wp.com\/ios-blog.co.uk\/wp-content\/uploads\/2014\/04\/custom-control-setup1-300x106.png?resize=300%2C106\" width=\"300\" height=\"106\" \/><\/p>\n<h5>Converting From Other Types<\/h5>\n<p>Any attribute type can be used to configure a property of another type as long as the type is represented in the same way. For example Point and Size can be used interchangeably, but they can also be used to represent a property of type\u00a0<strong>CGVector<\/strong>, because the underlying structure is the same (i.e. two floating point numbers).<\/p>\n<p>But you can also use another little trick to configure a property of a type otherwise unsupported by Interface Builder. For example, continuing on from configuring a view\u2019s underlying CALayer, you may wish to set the border colour or shadow colour. This isn\u2019t directly supported using runtime attributes, because these properties are of type\u00a0<strong>CGColorRef<\/strong>. But consider the following example:<\/p>\n<p><img data-recalc-dims=\"1\" loading=\"lazy\" decoding=\"async\" class=\"aligncenter\" src=\"https:\/\/i0.wp.com\/ios-blog.co.uk\/wp-content\/uploads\/2014\/04\/calayer-border-color-300x105.png?resize=300%2C105\" width=\"300\" height=\"105\" \/><\/p>\n<p>In order to make CALayer KVC-compliant for the property\u00a0<strong>borderColorFromUIColor<\/strong>, simply implement the setter for the property. This can be done in a category on CALayer as follows:<\/p>\n<p>[code autolinks=&#8221;false&#8221; collapse=&#8221;false&#8221; firstline=&#8221;1&#8243; gutter=&#8221;true&#8221; htmlscript=&#8221;false&#8221; light=&#8221;false&#8221; padlinenumbers=&#8221;false&#8221; smarttabs=&#8221;true&#8221; tabsize=&#8221;4&#8243; toolbar=&#8221;false&#8221;]@implementation\u00a0CALayer\u00a0(Additions)<br \/>\n&#8211;\u00a0(void)setBorderColorFromUIColor:(UIColor\u00a0*)color<br \/>\n{<br \/>\n\tself.borderColor\u00a0=\u00a0color.CGColor;<br \/>\n}<br \/>\n@end[\/code]<\/p>\n<h5>Convert From String<\/h5>\n<p>It is often useful to convert from a string to another type. For example, configuring a property of type\u00a0<strong>UIEdgeInsets<\/strong>\u00a0isn\u2019t directly supported by runtime attributes, but consider the following category:<\/p>\n<p>[code autolinks=&#8221;false&#8221; collapse=&#8221;false&#8221; firstline=&#8221;1&#8243; gutter=&#8221;true&#8221; htmlscript=&#8221;false&#8221; light=&#8221;false&#8221; padlinenumbers=&#8221;false&#8221; smarttabs=&#8221;true&#8221; tabsize=&#8221;4&#8243; toolbar=&#8221;false&#8221;]@implementation\u00a0UIScrollView\u00a0(Additions)<br \/>\n&#8211;\u00a0(void)setContentInsetFromString:(NSString\u00a0*)contentInsetString<br \/>\n{<br \/>\n\tself.contentInset\u00a0=\u00a0UIEdgeInsetsFromString(contentInsetString);<br \/>\n}<br \/>\n@end[\/code]<\/p>\n<p>It\u2019s particularly easy to convert from a string to\u00a0<strong>UIEdgeInsets<\/strong>\u00a0type, because of the nice\u00a0<strong>UIEdgeInsetsFromString<\/strong>\u00a0method provided by UIKit. But you could define your own method to convert from a string to any other type you can think of. Get creative!<\/p>\n<h5>More Advanced Uses<\/h5>\n<p>Often it is useful to be able to set some attributes of a view where the attribute doesn\u2019t have a corresponding property on the view.<\/p>\n<p>Imagine a scenario where you have various UIView views within a view controller. You want to use UIKit Dynamics to make each view drop to the bottom of the screen and bounce. And you want to define how high it should bounce in Interface Builder, because after all, you are building the interface!<\/p>\n<p>Consider the following setup for runtime attributes on a UIView.<\/p>\n<p><img data-recalc-dims=\"1\" loading=\"lazy\" decoding=\"async\" class=\"aligncenter\" src=\"https:\/\/i0.wp.com\/ios-blog.co.uk\/wp-content\/uploads\/2014\/04\/elasticity-300x125.png?resize=300%2C125\" width=\"300\" height=\"125\" \/><\/p>\n<p>UIView is not KVC-compliant for the key path\u00a0<strong>elasticity<\/strong>. And an exception will be raised if you run the app now. But you can change this by defining a category on UIView with the property\u00a0<strong>elasticity<\/strong>.<\/p>\n<p>Now you can use this property when you configure the UIDynamicItemBehavior in your view controller. This is nice because it means you don\u2019t have to have logic in your view controller for each view individually. Your view controller only needs to know about a collection of views (i.e. IBOutletCollection). The specific configuration of each is done in Interface Builder, where it belongs.<\/p>\n<p>[code autolinks=&#8221;false&#8221; collapse=&#8221;false&#8221; firstline=&#8221;1&#8243; gutter=&#8221;true&#8221; htmlscript=&#8221;false&#8221; light=&#8221;false&#8221; padlinenumbers=&#8221;false&#8221; smarttabs=&#8221;true&#8221; tabsize=&#8221;4&#8243; toolbar=&#8221;false&#8221;]for\u00a0(UILabel\u00a0*label\u00a0in\u00a0self.labels)\u00a0{<br \/>\n\tUIDynamicItemBehavior\u00a0*itemBehavior\u00a0=\u00a0[[UIDynamicItemBehavior alloc]\u00a0initWithItems:@[label]];<br \/>\n\t[self.animator addBehavior:itemBehavior];<br \/>\n\titemBehavior.elasticity\u00a0=\u00a0label.elasticity;<br \/>\n}<br \/>\n[\/code]<br \/>\n[\u2026]<\/p>\n<p><strong>Read full article here<\/strong>:\u00a0<a href=\"http:\/\/ios-blog.co.uk\/tutorials\/user-defined-runtime-attributes\" target=\"_blank\" rel=\"noopener\">http:\/\/ios-blog.co.uk\/tutorials\/user-defined-runtime-attributes<\/a><\/p>\n<blockquote>\n<hr \/>\n<p><img data-recalc-dims=\"1\" loading=\"lazy\" decoding=\"async\" class=\"alignleft size-full wp-image-3344\" src=\"https:\/\/i0.wp.com\/www.albertopasca.it\/whiletrue\/wp-content\/uploads\/2014\/04\/warning.png?resize=50%2C41\" alt=\"warning\" width=\"50\" height=\"41\" \/><strong>Important note:<\/strong><br \/>\nthis article is automatically grabbed from\u00a0<a href=\"http:\/\/feedproxy.google.com\/~r\/iosdevblog\/~3\/D9UNRivjAz4\/\">here<\/a>. I\u2019m not the owner and the responsible of this post content.<\/p>\n<hr \/>\n<\/blockquote>\n","protected":false},"excerpt":{"rendered":"<p>User defined runtime attributes are the hidden gem of Xcode\u2019s Interface Builder. Available since Xcode 4 and iOS 5, they provide the ability to configure properties of a view that you would otherwise be unable to configure in Interface Builder.<\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"closed","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"_jetpack_newsletter_access":"","_jetpack_dont_email_post_to_subs":false,"_jetpack_newsletter_tier_id":0,"_jetpack_memberships_contains_paywalled_content":false,"_jetpack_hide_featured_image":false,"_jetpack_featured_image_duplicate_dismissed":0,"_jetpack_feature_clip_id":0,"_jetpack_memberships_contains_paid_content":false,"footnotes":"","jetpack_publicize_message":"","jetpack_publicize_feature_enabled":true,"jetpack_social_post_already_shared":false,"jetpack_social_options":{"image_generator_settings":{"template":"highway","default_image_id":0,"font":"","enabled":false},"version":2},"jetpack_post_was_ever_published":false},"categories":[11,2,30],"tags":[87,167,151,152],"class_list":["post-168","post","type-post","status-publish","format-standard","hentry","category-mobile","category-objectivec","category-xcode","tag-ios","tag-objectivec","tag-properties","tag-runtime"],"yoast_head":"<!-- This site is optimized with the Yoast SEO plugin v28.9 - https:\/\/yoast.com\/product\/yoast-seo-wordpress\/ -->\n<title>[Objc] User defined runtime attributes - while (true) {\u00a0}<\/title>\n<meta name=\"robots\" content=\"index, follow, max-snippet:-1, max-image-preview:large, max-video-preview:-1\" \/>\n<link rel=\"canonical\" href=\"https:\/\/www.albertopasca.it\/whiletrue\/user-defined-runtime-attributes\/\" \/>\n<meta property=\"og:locale\" content=\"en_US\" \/>\n<meta property=\"og:type\" content=\"article\" \/>\n<meta property=\"og:title\" content=\"[Objc] User defined runtime attributes - while (true) {\u00a0}\" \/>\n<meta property=\"og:description\" content=\"User defined runtime attributes are the hidden gem of Xcode\u2019s Interface Builder. Available since Xcode 4 and iOS 5, they provide the ability to configure properties of a view that you would otherwise be unable to configure in Interface Builder.\" \/>\n<meta property=\"og:url\" content=\"https:\/\/www.albertopasca.it\/whiletrue\/user-defined-runtime-attributes\/\" \/>\n<meta property=\"og:site_name\" content=\"while (true) {\u00a0}\" \/>\n<meta property=\"article:published_time\" content=\"2014-08-06T05:29:27+00:00\" \/>\n<meta property=\"article:modified_time\" content=\"2018-05-25T12:06:41+00:00\" \/>\n<meta property=\"og:image\" content=\"http:\/\/ios-blog.co.uk\/wp-content\/uploads\/2014\/04\/user-defined-runtime-attributes-300x282.png\" \/>\n<meta name=\"author\" content=\"Alberto Pasca\" \/>\n<meta name=\"twitter:card\" content=\"summary_large_image\" \/>\n<meta name=\"twitter:creator\" content=\"@lupasca\" \/>\n<meta name=\"twitter:site\" content=\"@lupasca\" \/>\n<meta name=\"twitter:label1\" content=\"Written by\" \/>\n\t<meta name=\"twitter:data1\" content=\"Alberto Pasca\" \/>\n\t<meta name=\"twitter:label2\" content=\"Est. reading time\" \/>\n\t<meta name=\"twitter:data2\" content=\"4 minutes\" \/>\n<script type=\"application\/ld+json\" class=\"yoast-schema-graph\">{\"@context\":\"https:\\\/\\\/schema.org\",\"@graph\":[{\"@type\":\"Article\",\"@id\":\"https:\\\/\\\/www.albertopasca.it\\\/whiletrue\\\/user-defined-runtime-attributes\\\/#article\",\"isPartOf\":{\"@id\":\"https:\\\/\\\/www.albertopasca.it\\\/whiletrue\\\/user-defined-runtime-attributes\\\/\"},\"author\":{\"name\":\"Alberto Pasca\",\"@id\":\"https:\\\/\\\/www.albertopasca.it\\\/whiletrue\\\/#\\\/schema\\\/person\\\/d3cf0df774eb4aac797f246a795e9fac\"},\"headline\":\"[Objc] User defined runtime attributes\",\"datePublished\":\"2014-08-06T05:29:27+00:00\",\"dateModified\":\"2018-05-25T12:06:41+00:00\",\"mainEntityOfPage\":{\"@id\":\"https:\\\/\\\/www.albertopasca.it\\\/whiletrue\\\/user-defined-runtime-attributes\\\/\"},\"wordCount\":854,\"publisher\":{\"@id\":\"https:\\\/\\\/www.albertopasca.it\\\/whiletrue\\\/#\\\/schema\\\/person\\\/d3cf0df774eb4aac797f246a795e9fac\"},\"image\":{\"@id\":\"https:\\\/\\\/www.albertopasca.it\\\/whiletrue\\\/user-defined-runtime-attributes\\\/#primaryimage\"},\"thumbnailUrl\":\"http:\\\/\\\/ios-blog.co.uk\\\/wp-content\\\/uploads\\\/2014\\\/04\\\/user-defined-runtime-attributes-300x282.png\",\"keywords\":[\"iOS\",\"objectivec\",\"properties\",\"runtime\"],\"articleSection\":[\"mobile\",\"objectivec\",\"xcode\"],\"inLanguage\":\"en-US\"},{\"@type\":\"WebPage\",\"@id\":\"https:\\\/\\\/www.albertopasca.it\\\/whiletrue\\\/user-defined-runtime-attributes\\\/\",\"url\":\"https:\\\/\\\/www.albertopasca.it\\\/whiletrue\\\/user-defined-runtime-attributes\\\/\",\"name\":\"[Objc] User defined runtime attributes - while (true) {\u00a0}\",\"isPartOf\":{\"@id\":\"https:\\\/\\\/www.albertopasca.it\\\/whiletrue\\\/#website\"},\"primaryImageOfPage\":{\"@id\":\"https:\\\/\\\/www.albertopasca.it\\\/whiletrue\\\/user-defined-runtime-attributes\\\/#primaryimage\"},\"image\":{\"@id\":\"https:\\\/\\\/www.albertopasca.it\\\/whiletrue\\\/user-defined-runtime-attributes\\\/#primaryimage\"},\"thumbnailUrl\":\"http:\\\/\\\/ios-blog.co.uk\\\/wp-content\\\/uploads\\\/2014\\\/04\\\/user-defined-runtime-attributes-300x282.png\",\"datePublished\":\"2014-08-06T05:29:27+00:00\",\"dateModified\":\"2018-05-25T12:06:41+00:00\",\"breadcrumb\":{\"@id\":\"https:\\\/\\\/www.albertopasca.it\\\/whiletrue\\\/user-defined-runtime-attributes\\\/#breadcrumb\"},\"inLanguage\":\"en-US\",\"potentialAction\":[{\"@type\":\"ReadAction\",\"target\":[\"https:\\\/\\\/www.albertopasca.it\\\/whiletrue\\\/user-defined-runtime-attributes\\\/\"]}]},{\"@type\":\"ImageObject\",\"inLanguage\":\"en-US\",\"@id\":\"https:\\\/\\\/www.albertopasca.it\\\/whiletrue\\\/user-defined-runtime-attributes\\\/#primaryimage\",\"url\":\"http:\\\/\\\/ios-blog.co.uk\\\/wp-content\\\/uploads\\\/2014\\\/04\\\/user-defined-runtime-attributes-300x282.png\",\"contentUrl\":\"http:\\\/\\\/ios-blog.co.uk\\\/wp-content\\\/uploads\\\/2014\\\/04\\\/user-defined-runtime-attributes-300x282.png\"},{\"@type\":\"BreadcrumbList\",\"@id\":\"https:\\\/\\\/www.albertopasca.it\\\/whiletrue\\\/user-defined-runtime-attributes\\\/#breadcrumb\",\"itemListElement\":[{\"@type\":\"ListItem\",\"position\":1,\"name\":\"Home\",\"item\":\"https:\\\/\\\/www.albertopasca.it\\\/whiletrue\\\/\"},{\"@type\":\"ListItem\",\"position\":2,\"name\":\"[Objc] User defined runtime attributes\"}]},{\"@type\":\"WebSite\",\"@id\":\"https:\\\/\\\/www.albertopasca.it\\\/whiletrue\\\/#website\",\"url\":\"https:\\\/\\\/www.albertopasca.it\\\/whiletrue\\\/\",\"name\":\"while (true) {\u00a0}\",\"description\":\"notes from a developer, tutorials, how-to, ideas\",\"publisher\":{\"@id\":\"https:\\\/\\\/www.albertopasca.it\\\/whiletrue\\\/#\\\/schema\\\/person\\\/d3cf0df774eb4aac797f246a795e9fac\"},\"potentialAction\":[{\"@type\":\"SearchAction\",\"target\":{\"@type\":\"EntryPoint\",\"urlTemplate\":\"https:\\\/\\\/www.albertopasca.it\\\/whiletrue\\\/?s={search_term_string}\"},\"query-input\":{\"@type\":\"PropertyValueSpecification\",\"valueRequired\":true,\"valueName\":\"search_term_string\"}}],\"inLanguage\":\"en-US\"},{\"@type\":[\"Person\",\"Organization\"],\"@id\":\"https:\\\/\\\/www.albertopasca.it\\\/whiletrue\\\/#\\\/schema\\\/person\\\/d3cf0df774eb4aac797f246a795e9fac\",\"name\":\"Alberto Pasca\",\"image\":{\"@type\":\"ImageObject\",\"inLanguage\":\"en-US\",\"@id\":\"https:\\\/\\\/secure.gravatar.com\\\/avatar\\\/4d8fe43c412d0bb34a71c41f60dce53eff3afc027853cbfd20bee6ddc7e93f35?s=96&d=retro&r=g\",\"url\":\"https:\\\/\\\/secure.gravatar.com\\\/avatar\\\/4d8fe43c412d0bb34a71c41f60dce53eff3afc027853cbfd20bee6ddc7e93f35?s=96&d=retro&r=g\",\"contentUrl\":\"https:\\\/\\\/secure.gravatar.com\\\/avatar\\\/4d8fe43c412d0bb34a71c41f60dce53eff3afc027853cbfd20bee6ddc7e93f35?s=96&d=retro&r=g\",\"caption\":\"Alberto Pasca\"},\"logo\":{\"@id\":\"https:\\\/\\\/secure.gravatar.com\\\/avatar\\\/4d8fe43c412d0bb34a71c41f60dce53eff3afc027853cbfd20bee6ddc7e93f35?s=96&d=retro&r=g\"},\"description\":\"Software engineer @ Pirelli &amp; C. S.p.A. with a strong passion for mobile \uf8ff development, security, and connected things.\",\"sameAs\":[\"https:\\\/\\\/www.albertopasca.it\",\"albertopasca\",\"https:\\\/\\\/x.com\\\/lupasca\"]}]}<\/script>\n<!-- \/ Yoast SEO plugin. -->","yoast_head_json":{"title":"[Objc] User defined runtime attributes - while (true) {\u00a0}","robots":{"index":"index","follow":"follow","max-snippet":"max-snippet:-1","max-image-preview":"max-image-preview:large","max-video-preview":"max-video-preview:-1"},"canonical":"https:\/\/www.albertopasca.it\/whiletrue\/user-defined-runtime-attributes\/","og_locale":"en_US","og_type":"article","og_title":"[Objc] User defined runtime attributes - while (true) {\u00a0}","og_description":"User defined runtime attributes are the hidden gem of Xcode\u2019s Interface Builder. Available since Xcode 4 and iOS 5, they provide the ability to configure properties of a view that you would otherwise be unable to configure in Interface Builder.","og_url":"https:\/\/www.albertopasca.it\/whiletrue\/user-defined-runtime-attributes\/","og_site_name":"while (true) {\u00a0}","article_published_time":"2014-08-06T05:29:27+00:00","article_modified_time":"2018-05-25T12:06:41+00:00","og_image":[{"url":"http:\/\/ios-blog.co.uk\/wp-content\/uploads\/2014\/04\/user-defined-runtime-attributes-300x282.png","type":"","width":"","height":""}],"author":"Alberto Pasca","twitter_card":"summary_large_image","twitter_creator":"@lupasca","twitter_site":"@lupasca","twitter_misc":{"Written by":"Alberto Pasca","Est. reading time":"4 minutes"},"schema":{"@context":"https:\/\/schema.org","@graph":[{"@type":"Article","@id":"https:\/\/www.albertopasca.it\/whiletrue\/user-defined-runtime-attributes\/#article","isPartOf":{"@id":"https:\/\/www.albertopasca.it\/whiletrue\/user-defined-runtime-attributes\/"},"author":{"name":"Alberto Pasca","@id":"https:\/\/www.albertopasca.it\/whiletrue\/#\/schema\/person\/d3cf0df774eb4aac797f246a795e9fac"},"headline":"[Objc] User defined runtime attributes","datePublished":"2014-08-06T05:29:27+00:00","dateModified":"2018-05-25T12:06:41+00:00","mainEntityOfPage":{"@id":"https:\/\/www.albertopasca.it\/whiletrue\/user-defined-runtime-attributes\/"},"wordCount":854,"publisher":{"@id":"https:\/\/www.albertopasca.it\/whiletrue\/#\/schema\/person\/d3cf0df774eb4aac797f246a795e9fac"},"image":{"@id":"https:\/\/www.albertopasca.it\/whiletrue\/user-defined-runtime-attributes\/#primaryimage"},"thumbnailUrl":"http:\/\/ios-blog.co.uk\/wp-content\/uploads\/2014\/04\/user-defined-runtime-attributes-300x282.png","keywords":["iOS","objectivec","properties","runtime"],"articleSection":["mobile","objectivec","xcode"],"inLanguage":"en-US"},{"@type":"WebPage","@id":"https:\/\/www.albertopasca.it\/whiletrue\/user-defined-runtime-attributes\/","url":"https:\/\/www.albertopasca.it\/whiletrue\/user-defined-runtime-attributes\/","name":"[Objc] User defined runtime attributes - while (true) {\u00a0}","isPartOf":{"@id":"https:\/\/www.albertopasca.it\/whiletrue\/#website"},"primaryImageOfPage":{"@id":"https:\/\/www.albertopasca.it\/whiletrue\/user-defined-runtime-attributes\/#primaryimage"},"image":{"@id":"https:\/\/www.albertopasca.it\/whiletrue\/user-defined-runtime-attributes\/#primaryimage"},"thumbnailUrl":"http:\/\/ios-blog.co.uk\/wp-content\/uploads\/2014\/04\/user-defined-runtime-attributes-300x282.png","datePublished":"2014-08-06T05:29:27+00:00","dateModified":"2018-05-25T12:06:41+00:00","breadcrumb":{"@id":"https:\/\/www.albertopasca.it\/whiletrue\/user-defined-runtime-attributes\/#breadcrumb"},"inLanguage":"en-US","potentialAction":[{"@type":"ReadAction","target":["https:\/\/www.albertopasca.it\/whiletrue\/user-defined-runtime-attributes\/"]}]},{"@type":"ImageObject","inLanguage":"en-US","@id":"https:\/\/www.albertopasca.it\/whiletrue\/user-defined-runtime-attributes\/#primaryimage","url":"http:\/\/ios-blog.co.uk\/wp-content\/uploads\/2014\/04\/user-defined-runtime-attributes-300x282.png","contentUrl":"http:\/\/ios-blog.co.uk\/wp-content\/uploads\/2014\/04\/user-defined-runtime-attributes-300x282.png"},{"@type":"BreadcrumbList","@id":"https:\/\/www.albertopasca.it\/whiletrue\/user-defined-runtime-attributes\/#breadcrumb","itemListElement":[{"@type":"ListItem","position":1,"name":"Home","item":"https:\/\/www.albertopasca.it\/whiletrue\/"},{"@type":"ListItem","position":2,"name":"[Objc] User defined runtime attributes"}]},{"@type":"WebSite","@id":"https:\/\/www.albertopasca.it\/whiletrue\/#website","url":"https:\/\/www.albertopasca.it\/whiletrue\/","name":"while (true) {\u00a0}","description":"notes from a developer, tutorials, how-to, ideas","publisher":{"@id":"https:\/\/www.albertopasca.it\/whiletrue\/#\/schema\/person\/d3cf0df774eb4aac797f246a795e9fac"},"potentialAction":[{"@type":"SearchAction","target":{"@type":"EntryPoint","urlTemplate":"https:\/\/www.albertopasca.it\/whiletrue\/?s={search_term_string}"},"query-input":{"@type":"PropertyValueSpecification","valueRequired":true,"valueName":"search_term_string"}}],"inLanguage":"en-US"},{"@type":["Person","Organization"],"@id":"https:\/\/www.albertopasca.it\/whiletrue\/#\/schema\/person\/d3cf0df774eb4aac797f246a795e9fac","name":"Alberto Pasca","image":{"@type":"ImageObject","inLanguage":"en-US","@id":"https:\/\/secure.gravatar.com\/avatar\/4d8fe43c412d0bb34a71c41f60dce53eff3afc027853cbfd20bee6ddc7e93f35?s=96&d=retro&r=g","url":"https:\/\/secure.gravatar.com\/avatar\/4d8fe43c412d0bb34a71c41f60dce53eff3afc027853cbfd20bee6ddc7e93f35?s=96&d=retro&r=g","contentUrl":"https:\/\/secure.gravatar.com\/avatar\/4d8fe43c412d0bb34a71c41f60dce53eff3afc027853cbfd20bee6ddc7e93f35?s=96&d=retro&r=g","caption":"Alberto Pasca"},"logo":{"@id":"https:\/\/secure.gravatar.com\/avatar\/4d8fe43c412d0bb34a71c41f60dce53eff3afc027853cbfd20bee6ddc7e93f35?s=96&d=retro&r=g"},"description":"Software engineer @ Pirelli &amp; C. S.p.A. with a strong passion for mobile \uf8ff development, security, and connected things.","sameAs":["https:\/\/www.albertopasca.it","albertopasca","https:\/\/x.com\/lupasca"]}]}},"jetpack_publicize_connections":[],"jetpack_sharing_enabled":true,"jetpack_likes_enabled":true,"jetpack-related-posts":[],"jetpack_featured_media_url":"","_links":{"self":[{"href":"https:\/\/www.albertopasca.it\/whiletrue\/wp-json\/wp\/v2\/posts\/168","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/www.albertopasca.it\/whiletrue\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/www.albertopasca.it\/whiletrue\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/www.albertopasca.it\/whiletrue\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/www.albertopasca.it\/whiletrue\/wp-json\/wp\/v2\/comments?post=168"}],"version-history":[{"count":4,"href":"https:\/\/www.albertopasca.it\/whiletrue\/wp-json\/wp\/v2\/posts\/168\/revisions"}],"predecessor-version":[{"id":791,"href":"https:\/\/www.albertopasca.it\/whiletrue\/wp-json\/wp\/v2\/posts\/168\/revisions\/791"}],"wp:attachment":[{"href":"https:\/\/www.albertopasca.it\/whiletrue\/wp-json\/wp\/v2\/media?parent=168"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/www.albertopasca.it\/whiletrue\/wp-json\/wp\/v2\/categories?post=168"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/www.albertopasca.it\/whiletrue\/wp-json\/wp\/v2\/tags?post=168"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}