{"id":191,"date":"2013-10-23T08:08:14","date_gmt":"2013-10-23T06:08:14","guid":{"rendered":"http:\/\/www.albertopasca.it\/whiletrue\/?p=191"},"modified":"2018-05-25T13:36:26","modified_gmt":"2018-05-25T11:36:26","slug":"objc-uialertview-and-blocks","status":"publish","type":"post","link":"https:\/\/www.albertopasca.it\/whiletrue\/objc-uialertview-and-blocks\/","title":{"rendered":"[Objc] UIAlertView and blocks"},"content":{"rendered":"<p>A simple\u00a0<strong>UIAlertView category<\/strong>\u00a0to show an alert view in a simple and more readable way!<\/p>\n<p>Like this:<\/p>\n<p><!--more--><\/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;][\u00a0UIAlertView showAlertViewWithTitle:@&quot;title&quot;<br \/>\n\tmessage:@&quot;message alert&quot;<br \/>\n\tcancelButtonTitle:@&quot;cancel&quot;<br \/>\n\totherButtonTitles:@[@&quot;ok&quot;]<br \/>\n\tonSelect:^(int\u00a0buttonIndex)\u00a0{<br \/>\n\t\tNSLog(@&quot;DISMISSED!!!&quot;);<br \/>\n\t}\u00a0onCancel:^{<br \/>\n\t\tNSLog(@&quot;CANCELLED!&quot;);<br \/>\n}];[\/code]<\/p>\n<p><a href=\"https:\/\/i0.wp.com\/www.albertopasca.it\/whiletrue\/wp-content\/uploads\/2013\/10\/Schermata-2013-10-21-alle-17.32.38.png\"><img data-recalc-dims=\"1\" loading=\"lazy\" decoding=\"async\" class=\"aligncenter size-full wp-image-2753\" src=\"https:\/\/i0.wp.com\/www.albertopasca.it\/whiletrue\/wp-content\/uploads\/2013\/10\/Schermata-2013-10-21-alle-17.32.38.png?resize=310%2C190\" alt=\"Schermata 2013-10-21 alle 17.32.38\" width=\"310\" height=\"190\" \/><\/a><\/p>\n<p>&nbsp;<\/p>\n<h5>How to?<\/h5>\n<p>Create your\u00a0<strong>UIAlertView+Blocks<\/strong>\u00a0category and import in your file projects:<\/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;]\/\/<br \/>\n\/\/ header<br \/>\n\/\/<br \/>\n@interface\u00a0UIAlertView\u00a0(BlockBased)<\/p>\n<p>typedef\u00a0void\u00a0(^SelectBlock)(int\u00a0buttonIndex);<br \/>\ntypedef\u00a0void\u00a0(^CancelBlock)();<\/p>\n<p>+\u00a0(UIAlertView*)\u00a0showAlertViewWithTitle:(NSString*)\u00a0title<br \/>\n\tmessage:(NSString*)\u00a0message<br \/>\n\tcancelButtonTitle:(NSString*)\u00a0cancelButtonTitle<br \/>\n\totherButtonTitles:(NSArray*)\u00a0otherButtons<br \/>\n\tonSelect:(SelectBlock)\u00a0selected<br \/>\n\tonCancel:(CancelBlock)\u00a0cancelled;<\/p>\n<p>@end[\/code]<\/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;]\/\/<br \/>\n\/\/ implementation<br \/>\n\/\/<br \/>\n@implementation\u00a0UIAlertView\u00a0(BlockBased)<\/p>\n<p>static\u00a0SelectBlock \u00a0_selectBlock;<br \/>\nstatic\u00a0CancelBlock \u00a0_cancelBlock;<\/p>\n<p>+\u00a0(UIAlertView*)\u00a0showAlertViewWithTitle:(NSString*)\u00a0title<br \/>\n\tmessage:(NSString*)\u00a0message<br \/>\n\tcancelButtonTitle:(NSString*)\u00a0cancelButtonTitle<br \/>\n\totherButtonTitles:(NSArray*)\u00a0otherButtons<br \/>\n\tonSelect:(SelectBlock)\u00a0selected<br \/>\n\tonCancel:(CancelBlock)\u00a0cancelled<br \/>\n{<br \/>\n\t_cancelBlock \u00a0=\u00a0\u00a0[cancelled copy];<br \/>\n\t_selectBlock \u00a0=\u00a0\u00a0[selected \u00a0copy];<\/p>\n<p>\tUIAlertView\u00a0*alert\u00a0=\u00a0[[UIAlertView alloc]<br \/>\n\t\tinitWithTitle:title<br \/>\n\t\tmessage:message<br \/>\n\t\tdelegate:[self self]<br \/>\n\t\tcancelButtonTitle:cancelButtonTitle<br \/>\n\t\totherButtonTitles:nil];<\/p>\n<p>\tfor\u00a0(\u00a0NSString\u00a0*buttonTitle\u00a0in\u00a0otherButtons\u00a0)<br \/>\n\t\t[alert addButtonWithTitle:buttonTitle];<\/p>\n<p>\t\t[alert show];<\/p>\n<p>\t\treturn\u00a0alert;<br \/>\n\t}<\/p>\n<p>+\u00a0(void)alertView:(UIAlertView*)\u00a0alertView didDismissWithButtonIndex:(NSInteger)\u00a0buttonIndex<br \/>\n{<br \/>\n\tif\u00a0(\u00a0buttonIndex\u00a0==\u00a0[alertView cancelButtonIndex]\u00a0)\u00a0_cancelBlock();<br \/>\n\telse\u00a0_selectBlock\u00a0(buttonIndex\u00a0&#8211;\u00a01);<br \/>\n}<\/p>\n<p>@end[\/code]<\/p>\n<p><strong>On github<\/strong>:\u00a0<a href=\"https:\/\/gist.github.com\/elpsk\/3d2f5fe1612ff107ad9e\" target=\"_blank\" rel=\"noopener\">https:\/\/gist.github.com\/elpsk\/3d2f5fe1612ff107ad9e<\/a><\/p>\n<p><strong>Ref<\/strong>:<br \/>\n\u2013\u00a0<a href=\"http:\/\/www.albertopasca.it\/software-developer\/\" target=\"_blank\" rel=\"noopener\">albertopasca.it<\/a><br \/>\n\u2013\u00a0<a href=\"http:\/\/goo.gl\/ie6ILd\" target=\"_blank\" rel=\"noopener\">http:\/\/goo.gl\/ie6ILd<\/a><\/p>\n","protected":false},"excerpt":{"rendered":"<p>A simple\u00a0UIAlertView category\u00a0to show an alert view in a simple and more readable way! Like this:<\/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_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],"tags":[188,189,190],"class_list":["post-191","post","type-post","status-publish","format-standard","hentry","category-mobile","category-objectivec","tag-blocks","tag-category","tag-uialertview"],"yoast_head":"<!-- This site is optimized with the Yoast SEO plugin v28.7 - https:\/\/yoast.com\/product\/yoast-seo-wordpress\/ -->\n<title>[Objc] UIAlertView and blocks - 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\/objc-uialertview-and-blocks\/\" \/>\n<meta property=\"og:locale\" content=\"en_US\" \/>\n<meta property=\"og:type\" content=\"article\" \/>\n<meta property=\"og:title\" content=\"[Objc] UIAlertView and blocks - while (true) {\u00a0}\" \/>\n<meta property=\"og:description\" content=\"A simple\u00a0UIAlertView category\u00a0to show an alert view in a simple and more readable way! Like this:\" \/>\n<meta property=\"og:url\" content=\"https:\/\/www.albertopasca.it\/whiletrue\/objc-uialertview-and-blocks\/\" \/>\n<meta property=\"og:site_name\" content=\"while (true) {\u00a0}\" \/>\n<meta property=\"article:published_time\" content=\"2013-10-23T06:08:14+00:00\" \/>\n<meta property=\"article:modified_time\" content=\"2018-05-25T11:36:26+00:00\" \/>\n<meta property=\"og:image\" content=\"http:\/\/www.albertopasca.it\/whiletrue\/wp-content\/uploads\/2013\/10\/Schermata-2013-10-21-alle-17.32.38.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=\"1 minute\" \/>\n<script type=\"application\/ld+json\" class=\"yoast-schema-graph\">{\"@context\":\"https:\\\/\\\/schema.org\",\"@graph\":[{\"@type\":\"Article\",\"@id\":\"https:\\\/\\\/www.albertopasca.it\\\/whiletrue\\\/objc-uialertview-and-blocks\\\/#article\",\"isPartOf\":{\"@id\":\"https:\\\/\\\/www.albertopasca.it\\\/whiletrue\\\/objc-uialertview-and-blocks\\\/\"},\"author\":{\"name\":\"Alberto Pasca\",\"@id\":\"https:\\\/\\\/www.albertopasca.it\\\/whiletrue\\\/#\\\/schema\\\/person\\\/d3cf0df774eb4aac797f246a795e9fac\"},\"headline\":\"[Objc] UIAlertView and blocks\",\"datePublished\":\"2013-10-23T06:08:14+00:00\",\"dateModified\":\"2018-05-25T11:36:26+00:00\",\"mainEntityOfPage\":{\"@id\":\"https:\\\/\\\/www.albertopasca.it\\\/whiletrue\\\/objc-uialertview-and-blocks\\\/\"},\"wordCount\":258,\"publisher\":{\"@id\":\"https:\\\/\\\/www.albertopasca.it\\\/whiletrue\\\/#\\\/schema\\\/person\\\/d3cf0df774eb4aac797f246a795e9fac\"},\"image\":{\"@id\":\"https:\\\/\\\/www.albertopasca.it\\\/whiletrue\\\/objc-uialertview-and-blocks\\\/#primaryimage\"},\"thumbnailUrl\":\"http:\\\/\\\/www.albertopasca.it\\\/whiletrue\\\/wp-content\\\/uploads\\\/2013\\\/10\\\/Schermata-2013-10-21-alle-17.32.38.png\",\"keywords\":[\"blocks\",\"category\",\"uialertview\"],\"articleSection\":[\"mobile\",\"objectivec\"],\"inLanguage\":\"en-US\"},{\"@type\":\"WebPage\",\"@id\":\"https:\\\/\\\/www.albertopasca.it\\\/whiletrue\\\/objc-uialertview-and-blocks\\\/\",\"url\":\"https:\\\/\\\/www.albertopasca.it\\\/whiletrue\\\/objc-uialertview-and-blocks\\\/\",\"name\":\"[Objc] UIAlertView and blocks - while (true) {\u00a0}\",\"isPartOf\":{\"@id\":\"https:\\\/\\\/www.albertopasca.it\\\/whiletrue\\\/#website\"},\"primaryImageOfPage\":{\"@id\":\"https:\\\/\\\/www.albertopasca.it\\\/whiletrue\\\/objc-uialertview-and-blocks\\\/#primaryimage\"},\"image\":{\"@id\":\"https:\\\/\\\/www.albertopasca.it\\\/whiletrue\\\/objc-uialertview-and-blocks\\\/#primaryimage\"},\"thumbnailUrl\":\"http:\\\/\\\/www.albertopasca.it\\\/whiletrue\\\/wp-content\\\/uploads\\\/2013\\\/10\\\/Schermata-2013-10-21-alle-17.32.38.png\",\"datePublished\":\"2013-10-23T06:08:14+00:00\",\"dateModified\":\"2018-05-25T11:36:26+00:00\",\"breadcrumb\":{\"@id\":\"https:\\\/\\\/www.albertopasca.it\\\/whiletrue\\\/objc-uialertview-and-blocks\\\/#breadcrumb\"},\"inLanguage\":\"en-US\",\"potentialAction\":[{\"@type\":\"ReadAction\",\"target\":[\"https:\\\/\\\/www.albertopasca.it\\\/whiletrue\\\/objc-uialertview-and-blocks\\\/\"]}]},{\"@type\":\"ImageObject\",\"inLanguage\":\"en-US\",\"@id\":\"https:\\\/\\\/www.albertopasca.it\\\/whiletrue\\\/objc-uialertview-and-blocks\\\/#primaryimage\",\"url\":\"http:\\\/\\\/www.albertopasca.it\\\/whiletrue\\\/wp-content\\\/uploads\\\/2013\\\/10\\\/Schermata-2013-10-21-alle-17.32.38.png\",\"contentUrl\":\"http:\\\/\\\/www.albertopasca.it\\\/whiletrue\\\/wp-content\\\/uploads\\\/2013\\\/10\\\/Schermata-2013-10-21-alle-17.32.38.png\"},{\"@type\":\"BreadcrumbList\",\"@id\":\"https:\\\/\\\/www.albertopasca.it\\\/whiletrue\\\/objc-uialertview-and-blocks\\\/#breadcrumb\",\"itemListElement\":[{\"@type\":\"ListItem\",\"position\":1,\"name\":\"Home\",\"item\":\"https:\\\/\\\/www.albertopasca.it\\\/whiletrue\\\/\"},{\"@type\":\"ListItem\",\"position\":2,\"name\":\"[Objc] UIAlertView and blocks\"}]},{\"@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] UIAlertView and blocks - 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\/objc-uialertview-and-blocks\/","og_locale":"en_US","og_type":"article","og_title":"[Objc] UIAlertView and blocks - while (true) {\u00a0}","og_description":"A simple\u00a0UIAlertView category\u00a0to show an alert view in a simple and more readable way! Like this:","og_url":"https:\/\/www.albertopasca.it\/whiletrue\/objc-uialertview-and-blocks\/","og_site_name":"while (true) {\u00a0}","article_published_time":"2013-10-23T06:08:14+00:00","article_modified_time":"2018-05-25T11:36:26+00:00","og_image":[{"url":"http:\/\/www.albertopasca.it\/whiletrue\/wp-content\/uploads\/2013\/10\/Schermata-2013-10-21-alle-17.32.38.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":"1 minute"},"schema":{"@context":"https:\/\/schema.org","@graph":[{"@type":"Article","@id":"https:\/\/www.albertopasca.it\/whiletrue\/objc-uialertview-and-blocks\/#article","isPartOf":{"@id":"https:\/\/www.albertopasca.it\/whiletrue\/objc-uialertview-and-blocks\/"},"author":{"name":"Alberto Pasca","@id":"https:\/\/www.albertopasca.it\/whiletrue\/#\/schema\/person\/d3cf0df774eb4aac797f246a795e9fac"},"headline":"[Objc] UIAlertView and blocks","datePublished":"2013-10-23T06:08:14+00:00","dateModified":"2018-05-25T11:36:26+00:00","mainEntityOfPage":{"@id":"https:\/\/www.albertopasca.it\/whiletrue\/objc-uialertview-and-blocks\/"},"wordCount":258,"publisher":{"@id":"https:\/\/www.albertopasca.it\/whiletrue\/#\/schema\/person\/d3cf0df774eb4aac797f246a795e9fac"},"image":{"@id":"https:\/\/www.albertopasca.it\/whiletrue\/objc-uialertview-and-blocks\/#primaryimage"},"thumbnailUrl":"http:\/\/www.albertopasca.it\/whiletrue\/wp-content\/uploads\/2013\/10\/Schermata-2013-10-21-alle-17.32.38.png","keywords":["blocks","category","uialertview"],"articleSection":["mobile","objectivec"],"inLanguage":"en-US"},{"@type":"WebPage","@id":"https:\/\/www.albertopasca.it\/whiletrue\/objc-uialertview-and-blocks\/","url":"https:\/\/www.albertopasca.it\/whiletrue\/objc-uialertview-and-blocks\/","name":"[Objc] UIAlertView and blocks - while (true) {\u00a0}","isPartOf":{"@id":"https:\/\/www.albertopasca.it\/whiletrue\/#website"},"primaryImageOfPage":{"@id":"https:\/\/www.albertopasca.it\/whiletrue\/objc-uialertview-and-blocks\/#primaryimage"},"image":{"@id":"https:\/\/www.albertopasca.it\/whiletrue\/objc-uialertview-and-blocks\/#primaryimage"},"thumbnailUrl":"http:\/\/www.albertopasca.it\/whiletrue\/wp-content\/uploads\/2013\/10\/Schermata-2013-10-21-alle-17.32.38.png","datePublished":"2013-10-23T06:08:14+00:00","dateModified":"2018-05-25T11:36:26+00:00","breadcrumb":{"@id":"https:\/\/www.albertopasca.it\/whiletrue\/objc-uialertview-and-blocks\/#breadcrumb"},"inLanguage":"en-US","potentialAction":[{"@type":"ReadAction","target":["https:\/\/www.albertopasca.it\/whiletrue\/objc-uialertview-and-blocks\/"]}]},{"@type":"ImageObject","inLanguage":"en-US","@id":"https:\/\/www.albertopasca.it\/whiletrue\/objc-uialertview-and-blocks\/#primaryimage","url":"http:\/\/www.albertopasca.it\/whiletrue\/wp-content\/uploads\/2013\/10\/Schermata-2013-10-21-alle-17.32.38.png","contentUrl":"http:\/\/www.albertopasca.it\/whiletrue\/wp-content\/uploads\/2013\/10\/Schermata-2013-10-21-alle-17.32.38.png"},{"@type":"BreadcrumbList","@id":"https:\/\/www.albertopasca.it\/whiletrue\/objc-uialertview-and-blocks\/#breadcrumb","itemListElement":[{"@type":"ListItem","position":1,"name":"Home","item":"https:\/\/www.albertopasca.it\/whiletrue\/"},{"@type":"ListItem","position":2,"name":"[Objc] UIAlertView and blocks"}]},{"@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\/191","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=191"}],"version-history":[{"count":3,"href":"https:\/\/www.albertopasca.it\/whiletrue\/wp-json\/wp\/v2\/posts\/191\/revisions"}],"predecessor-version":[{"id":757,"href":"https:\/\/www.albertopasca.it\/whiletrue\/wp-json\/wp\/v2\/posts\/191\/revisions\/757"}],"wp:attachment":[{"href":"https:\/\/www.albertopasca.it\/whiletrue\/wp-json\/wp\/v2\/media?parent=191"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/www.albertopasca.it\/whiletrue\/wp-json\/wp\/v2\/categories?post=191"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/www.albertopasca.it\/whiletrue\/wp-json\/wp\/v2\/tags?post=191"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}