{"id":6022,"date":"2014-04-12T00:28:22","date_gmt":"2014-04-12T00:28:22","guid":{"rendered":"https:\/\/unknownerror.org\/index.php\/2014\/04\/12\/uilabel-with-rounded-corner-xcode-4-5-and-ios-6-collection-of-common-programming-errors-2\/"},"modified":"2014-04-12T00:28:22","modified_gmt":"2014-04-12T00:28:22","slug":"uilabel-with-rounded-corner-xcode-4-5-and-ios-6-collection-of-common-programming-errors-2","status":"publish","type":"post","link":"https:\/\/unknownerror.org\/index.php\/2014\/04\/12\/uilabel-with-rounded-corner-xcode-4-5-and-ios-6-collection-of-common-programming-errors-2\/","title":{"rendered":"UILabel with rounded corner (Xcode 4.5 and iOS 6)-Collection of common programming errors"},"content":{"rendered":"<p>You can do it all in Interface Builder.<br \/>\nIn <em>XCode<\/em>, select your <code>.xib<\/code> file (or your <em>storyboard<\/em>) to open Interface Builder. Click on your <code>UILabel<\/code> and open the <em>Identity inspector<\/em> (if you do not know where it is, go to XCode&#8217;s <em>Help menu<\/em> and type in &#8220;<em>Identity inspector<\/em>&#8220;). Click the plus button under the <em>User Defined Runtime Attributes<\/em> pane, and write <code>layer.cornerRadius<\/code> for the <em>Key Path<\/em>, chose <code>Number<\/code> for the <em>Type<\/em>, and <code>5<\/code> (or any other number) for the <em>Value<\/em>.<br \/>\nIf you run now your project you should get a round-cornered <code>UILabel<\/code>.<\/p>\n","protected":false},"excerpt":{"rendered":"<p>You can do it all in Interface Builder. In XCode, select your .xib file (or your storyboard) to open Interface Builder. Click on your UILabel and open the Identity inspector (if you do not know where it is, go to XCode&#8217;s Help menu and type in &#8220;Identity inspector&#8220;). Click the plus button under the User [&hellip;]<\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"closed","ping_status":"closed","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[1],"tags":[],"class_list":["post-6022","post","type-post","status-publish","format-standard","hentry","category-uncategorized"],"_links":{"self":[{"href":"https:\/\/unknownerror.org\/index.php\/wp-json\/wp\/v2\/posts\/6022","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/unknownerror.org\/index.php\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/unknownerror.org\/index.php\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/unknownerror.org\/index.php\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/unknownerror.org\/index.php\/wp-json\/wp\/v2\/comments?post=6022"}],"version-history":[{"count":0,"href":"https:\/\/unknownerror.org\/index.php\/wp-json\/wp\/v2\/posts\/6022\/revisions"}],"wp:attachment":[{"href":"https:\/\/unknownerror.org\/index.php\/wp-json\/wp\/v2\/media?parent=6022"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/unknownerror.org\/index.php\/wp-json\/wp\/v2\/categories?post=6022"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/unknownerror.org\/index.php\/wp-json\/wp\/v2\/tags?post=6022"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}