{"id":2070,"date":"2014-05-24T17:44:32","date_gmt":"2014-05-24T08:44:32","guid":{"rendered":"http:\/\/redwing.moo.jp\/cocoa\/?p=2070"},"modified":"2014-05-24T17:48:05","modified_gmt":"2014-05-24T08:48:05","slug":"uilabel-%e7%9c%81%e7%95%a5%e6%96%87%e5%ad%97%e4%b8%89%e7%82%b9%e3%83%aa%e3%83%bc%e3%83%80%e3%81%ae%e3%83%86%e3%82%ad%e3%82%b9%e3%83%88%e3%82%ab%e3%83%a9%e3%83%bc%e3%81%8c%e5%a4%89%e6%9b%b4%e3%81%95","status":"publish","type":"post","link":"https:\/\/redwing.moo.jp\/cocoa\/archives\/2070","title":{"rendered":"UILabel \u7701\u7565\u6587\u5b57(\u4e09\u70b9\u30ea\u30fc\u30c0)\u306e\u30c6\u30ad\u30b9\u30c8\u30ab\u30e9\u30fc\u304c\u5909\u66f4\u3055\u308c\u306a\u3044\u3053\u3068\u304c\u3042\u308b"},"content":{"rendered":"<p>&#8220;Deployment Target&#8221; \u304c iOS 6.x \u306e\u30a2\u30d7\u30ea\u3092\u3001iOS 7.x \u3067\u52d5\u4f5c\u3055\u305b\u305f\u5834\u5408\u306b\u3001\u63b2\u984c\u306e\u554f\u984c\u304c\u767a\u751f\u3057\u305f\u3002<\/p>\n<p>iOS 6.x \u306f\u554f\u984c\u304c\u306a\u304f\u3001iOS 7.x \u3067\u554f\u984c\u304c\u767a\u751f\u3059\u308b\u3002<\/p>\n<div id=\"attachment_2075\" style=\"width: 347px\" class=\"wp-caption aligncenter\"><a href=\"http:\/\/redwing.moo.jp\/cocoa\/wp-content\/uploads\/37cd923ddee76f582cf63b8c5ec3a3ad.png\"><img loading=\"lazy\" decoding=\"async\" aria-describedby=\"caption-attachment-2075\" src=\"http:\/\/redwing.moo.jp\/cocoa\/wp-content\/uploads\/37cd923ddee76f582cf63b8c5ec3a3ad.png\" alt=\"\u4e09\u70b9\u30ea\u30fc\u30c0\u306e\u30c6\u30ad\u30b9\u30c8\u30ab\u30e9\u30fc\u304c\u5909\u66f4\u3055\u308c\u306a\u3044\" width=\"337\" height=\"66\" class=\"size-full wp-image-2075\" srcset=\"https:\/\/redwing.moo.jp\/cocoa\/wp-content\/uploads\/37cd923ddee76f582cf63b8c5ec3a3ad.png 337w, https:\/\/redwing.moo.jp\/cocoa\/wp-content\/uploads\/37cd923ddee76f582cf63b8c5ec3a3ad-300x58.png 300w\" sizes=\"auto, (max-width: 337px) 100vw, 337px\" \/><\/a><p id=\"caption-attachment-2075\" class=\"wp-caption-text\">\u4e09\u70b9\u30ea\u30fc\u30c0\u306e\u30c6\u30ad\u30b9\u30c8\u30ab\u30e9\u30fc\u304c\u5909\u66f4\u3055\u308c\u306a\u3044<\/p><\/div>\n<p>\u554f\u984c\u304c\u767a\u751f\u3057\u305f\u30b3\u30fc\u30c9\u306f\u3001textColor \u30d7\u30ed\u30d1\u30c6\u30a3\u30fc\u3067\u6587\u5b57\u8272\u3092\u5909\u66f4\u3057\u3066\u3044\u305f\u3002<\/p>\n<pre lang=\"objc\" line=\"1\">_label1.textColor = color;\r\n<\/pre>\n<h4>\u5bfe\u51e6\u65b9\u6cd5<\/h4>\n<p>attributedText \u30d7\u30ed\u30d1\u30c6\u30a3\u30fc\u3092\u4f7f\u7528\u3059\u308b\u3053\u3068\u3067\u554f\u984c\u304c\u89e3\u6d88\u3055\u308c\u305f\u3002<\/p>\n<pre lang=\"objc\" line=\"1\">NSAttributedString *attributedString;\r\nattributedString = [[NSAttributedString alloc] initWithString:@\"UILabel \u30c6\u30ad\u30b9\u30c8\u306e\u4e09\u70b9\u30ea\u30fc\u30c0\u306e\u8272\u304c\u304a\u304b\u3057\u304f\u306a\u308b\"\r\n                                                 attributes:@{ NSForegroundColorAttributeName : color }];\r\n_label1.attributedText = attributedString;\r\n<\/pre>\n<p>\u53c2\u8003: <a title=\"UILabel dotted line color bug in iOS 7.1\" href=\"http:\/\/stackoverflow.com\/questions\/22718172\/uilabel-dotted-line-color-bug-in-ios-7-1\" target=\"_blank\">UILabel dotted line color bug in iOS 7.1<\/a><\/p>\n<a href=\"https:\/\/twitter.com\/redwing1300?ref_src=twsrc%5Etfw\" class=\"twitter-follow-button\" data-size=\"large\" data-show-count=\"false\">Follow @redwing1300<\/a><script async src=\"https:\/\/platform.twitter.com\/widgets.js\" charset=\"utf-8\"><\/script><!-- AddThis Advanced Settings generic via filter on the_content --><!-- AddThis Share Buttons generic via filter on the_content --><div id=\"redwi-2254715333\" class=\"redwi- redwi-entity-placement\"><script async src=\"\/\/pagead2.googlesyndication.com\/pagead\/js\/adsbygoogle.js?client=ca-pub-9652476346722993\" crossorigin=\"anonymous\"><\/script><ins class=\"adsbygoogle\" style=\"display:block;\" data-ad-client=\"ca-pub-9652476346722993\" \ndata-ad-slot=\"\" \ndata-ad-format=\"auto\"><\/ins>\n<script> \n(adsbygoogle = window.adsbygoogle || []).push({}); \n<\/script>\n<\/div>","protected":false},"excerpt":{"rendered":"<p>&#8220;Deployment Target&#8221; \u304c iOS 6.x \u306e\u30a2\u30d7\u30ea\u3092\u3001iOS 7.x \u3067\u52d5\u4f5c\u3055\u305b\u305f\u5834\u5408\u306b\u3001\u63b2\u984c\u306e\u554f\u984c\u304c\u767a\u751f\u3057\u305f\u3002 iOS 6.x \u306f\u554f\u984c\u304c\u306a\u304f\u3001iOS 7.x \u3067\u554f\u984c\u304c\u767a\u751f\u3059\u308b\u3002 &hellip; <a href=\"https:\/\/redwing.moo.jp\/cocoa\/archives\/2070\">\u7d9a\u304d\u3092\u8aad\u3080 <span class=\"meta-nav\">&rarr;<\/span><\/a><!-- AddThis Advanced Settings generic via filter on get_the_excerpt --><!-- AddThis Share Buttons generic via filter on get_the_excerpt --><\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[46,91],"tags":[],"class_list":["post-2070","post","type-post","status-publish","format-standard","hentry","category-ios","category-xcode5"],"_links":{"self":[{"href":"https:\/\/redwing.moo.jp\/cocoa\/wp-json\/wp\/v2\/posts\/2070","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/redwing.moo.jp\/cocoa\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/redwing.moo.jp\/cocoa\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/redwing.moo.jp\/cocoa\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/redwing.moo.jp\/cocoa\/wp-json\/wp\/v2\/comments?post=2070"}],"version-history":[{"count":8,"href":"https:\/\/redwing.moo.jp\/cocoa\/wp-json\/wp\/v2\/posts\/2070\/revisions"}],"predecessor-version":[{"id":2079,"href":"https:\/\/redwing.moo.jp\/cocoa\/wp-json\/wp\/v2\/posts\/2070\/revisions\/2079"}],"wp:attachment":[{"href":"https:\/\/redwing.moo.jp\/cocoa\/wp-json\/wp\/v2\/media?parent=2070"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/redwing.moo.jp\/cocoa\/wp-json\/wp\/v2\/categories?post=2070"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/redwing.moo.jp\/cocoa\/wp-json\/wp\/v2\/tags?post=2070"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}