{"id":840,"date":"2013-08-26T17:11:18","date_gmt":"2013-08-26T08:11:18","guid":{"rendered":"https:\/\/www.united-bears.co.jp\/blog\/?p=840"},"modified":"2013-08-26T17:11:18","modified_gmt":"2013-08-26T08:11:18","slug":"uitextview-%e3%81%ae%e8%a6%8b%e3%81%9f%e7%9b%ae%e3%82%92%e5%a4%89%e6%9b%b4%e3%81%99%e3%82%8b1","status":"publish","type":"post","link":"https:\/\/www.united-bears.co.jp\/blog\/archives\/840","title":{"rendered":"UITextView \u306e\u898b\u305f\u76ee\u3092\u5909\u66f4\u3059\u308b(1)"},"content":{"rendered":"<p>\u6587\u5b57\u5165\u529b\u90e8\u54c1\u3068\u3057\u3066 <a href=\"https:\/\/developer.apple.com\/library\/ios\/documentation\/UIKit\/Reference\/UITextField_Class\/Reference\/UITextField.html\">UITextField<\/a> \u3068 <a href=\"https:\/\/developer.apple.com\/library\/ios\/documentation\/uikit\/reference\/uitextview_class\/Reference\/UITextView.html\">UITextView<\/a> \u306e2\u3064\u304c\u3042\u308b\u3002<br \/>\n<br \/>\n<strong>UITextField<\/strong> \u306e\u65b9\u306f <strong>borderStyle<\/strong> \u30d7\u30ed\u30d1\u30c6\u30a3\u3092\u8a2d\u5b9a\u3057\u3066\u7c21\u5358\u306b\u898b\u305f\u76ee\u3092\u5909\u66f4\u3059\u308b\u3053\u3068\u304c\u3067\u304d\u308b\u3002<br \/>\n<a href=\"https:\/\/www.united-bears.co.jp\/blog\/wp-content\/uploads\/2013\/08\/ios_uitextview1_01.png\"><img loading=\"lazy\" decoding=\"async\" src=\"https:\/\/www.united-bears.co.jp\/blog\/wp-content\/uploads\/2013\/08\/ios_uitextview1_01.png\" alt=\"ios_uitextview1_01\" width=\"386\" height=\"372\" class=\"alignnone size-full wp-image-842\" \/><\/a><\/p>\n<p>\u3053\u3063\u3061\u3092\u63a1\u7528\u3057\u3088\u3046\u3068\u3057\u305f\u304c\u3001\u6587\u5b57\u30921\u884c\u3057\u304b\u5165\u529b\u3059\u308b\u3053\u3068\u304c\u3067\u304d\u306a\u3044 (\uff61\u00b4\u0414\u2282)<br \/>\n\u306e\u3067\u3001\u8907\u6570\u884c\u5165\u529b\u53ef\u80fd\u306a <strong>UITextView<\/strong> \u3092\u4f7f\u7528\u3057\u3066\u30d7\u30ed\u30b0\u30e9\u30e0\u3067\u898b\u305f\u76ee\u3092\u5909\u66f4\u3057\u3066\u307f\u305f\u3002<br \/>\n<br \/>\n<b>\uff03\u30c7\u30d5\u30a9\u30eb\u30c8\u306e\u898b\u305f\u76ee<\/b><br \/>\n<a href=\"https:\/\/www.united-bears.co.jp\/blog\/wp-content\/uploads\/2013\/08\/ios_uitextview1_02.png\"><img loading=\"lazy\" decoding=\"async\" src=\"https:\/\/www.united-bears.co.jp\/blog\/wp-content\/uploads\/2013\/08\/ios_uitextview1_02.png\" alt=\"ios_uitextview1_02\" width=\"385\" height=\"85\" class=\"alignnone size-full wp-image-844\" \/><\/a><\/p>\n<p><b>\uff03\u6e96\u5099<\/b><br \/>\nQuartzCore \u30d5\u30ec\u30fc\u30e0\u30ef\u30fc\u30af\u306e\u30a4\u30f3\u30dd\u30fc\u30c8<\/p>\n<pre>\r\n#import &lt;QuartzCore\/QuartzCore.h&gt;\r\n<\/pre>\n<p><b>\uff03\u307e\u305a\u306f\u3001\u67a0\u7dda\u3068\u89d2\u4e38\u306e\u8ffd\u52a0<\/b><br \/>\n<a href=\"https:\/\/www.united-bears.co.jp\/blog\/wp-content\/uploads\/2013\/08\/ios_uitextview1_03.png\"><img loading=\"lazy\" decoding=\"async\" src=\"https:\/\/www.united-bears.co.jp\/blog\/wp-content\/uploads\/2013\/08\/ios_uitextview1_03.png\" alt=\"ios_uitextview1_03\" width=\"385\" height=\"85\" class=\"alignnone size-full wp-image-845\" \/><\/a><\/p>\n<pre>\r\nUITextView *textView = [[UITextView alloc] initWithFrame:CGRectMake(10, 10, 200, 40)];\r\ntextView.text = @\"UITextView\";\r\ntextView.layer.borderWidth = 1.0f;    \/\/ \u67a0\u7dda\u306e\u5e45\r\ntextView.layer.cornerRadius = 5.0f;   \/\/ \u89d2\u306e\u4e38\u307f\r\n[self.view addSubview:textView];\r\n<\/pre>\n<p><b>\uff03\u305d\u3057\u3066\u3001\u5f71\u3092\u8ffd\u52a0<\/b><br \/>\n<a href=\"https:\/\/www.united-bears.co.jp\/blog\/wp-content\/uploads\/2013\/08\/ios_uitextview1_04.png\"><img loading=\"lazy\" decoding=\"async\" src=\"https:\/\/www.united-bears.co.jp\/blog\/wp-content\/uploads\/2013\/08\/ios_uitextview1_04.png\" alt=\"ios_uitextview1_04\" width=\"385\" height=\"85\" class=\"alignnone size-medium wp-image-846\" \/><\/a><\/p>\n<pre>\r\nUITextView *textView = [[UITextView alloc] initWithFrame:CGRectMake(10, 10, 200, 40)];\r\ntextView.text = @\"UITextView\";\r\ntextView.layer.borderWidth = 1.0f;    \/\/ \u67a0\u7dda\u306e\u5e45\r\ntextView.layer.cornerRadius = 5.0f;   \/\/ \u89d2\u306e\u4e38\u307f\r\ntextView.layer.shadowOpacity = 0.5f;  \/\/ \u5f71\u306e\u6fc3\u3055\r\ntextView.layer.masksToBounds = NO;    \/\/ \u3053\u308c\u304c\u306a\u3044\u3068\u5f71\u304c\u8868\u793a\u3055\u308c\u306a\u3044\r\n[self.view addSubview:textView];\r\n<\/pre>\n<p>\n\u3072\u3068\u307e\u305a\u30c7\u30d5\u30a9\u30eb\u30c8\u3088\u308a\u306f\u3001\u3088\u3055\u3052\u3060\u3051\u3069\u3001\u6700\u7d42\u7684\u306b\u306f UITextField \u306e\u89d2\u4e38\uff08UITextBorderStyleRoundedRect\uff09\u3068\u540c\u3058\u3088\u3046\u306a\u898b\u305f\u76ee\u306b\u5909\u66f4\u3057\u305f\u3044\uff01\uff08\u305d\u308c\u306f\u307e\u305f\u6b21\u56de\uff09<\/p>\n","protected":false},"excerpt":{"rendered":"<p>\u6587\u5b57\u5165\u529b\u90e8\u54c1\u3068\u3057\u3066 UITextField \u3068 UITextView \u306e2\u3064\u304c\u3042\u308b\u3002 UITextField \u306e\u65b9\u306f borderStyle \u30d7\u30ed\u30d1\u30c6\u30a3\u3092\u8a2d\u5b9a\u3057\u3066\u7c21\u5358\u306b\u898b\u305f\u76ee\u3092\u5909\u66f4\u3059\u308b\u3053\u3068\u304c\u3067\u304d\u308b\u3002 \u3053\u3063\u3061\u3092\u63a1\u7528\u3057\u3088\u3046\u3068 [&hellip;]<\/p>\n","protected":false},"author":4,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[9,21],"tags":[],"class_list":["post-840","post","type-post","status-publish","format-standard","hentry","category-iphone","category-iphone-develop"],"_links":{"self":[{"href":"https:\/\/www.united-bears.co.jp\/blog\/wp-json\/wp\/v2\/posts\/840","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/www.united-bears.co.jp\/blog\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/www.united-bears.co.jp\/blog\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/www.united-bears.co.jp\/blog\/wp-json\/wp\/v2\/users\/4"}],"replies":[{"embeddable":true,"href":"https:\/\/www.united-bears.co.jp\/blog\/wp-json\/wp\/v2\/comments?post=840"}],"version-history":[{"count":17,"href":"https:\/\/www.united-bears.co.jp\/blog\/wp-json\/wp\/v2\/posts\/840\/revisions"}],"predecessor-version":[{"id":862,"href":"https:\/\/www.united-bears.co.jp\/blog\/wp-json\/wp\/v2\/posts\/840\/revisions\/862"}],"wp:attachment":[{"href":"https:\/\/www.united-bears.co.jp\/blog\/wp-json\/wp\/v2\/media?parent=840"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/www.united-bears.co.jp\/blog\/wp-json\/wp\/v2\/categories?post=840"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/www.united-bears.co.jp\/blog\/wp-json\/wp\/v2\/tags?post=840"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}