{"id":793,"date":"2012-05-20T23:05:18","date_gmt":"2012-05-20T14:05:18","guid":{"rendered":"http:\/\/www.hawk-a.com\/exception_code\/?p=793"},"modified":"2013-09-06T15:30:56","modified_gmt":"2013-09-06T06:30:56","slug":"xcode-4-3text-field%e3%81%ae%e5%85%a5%e5%8a%9b%e3%81%8c%e7%b5%82%e3%82%8f%e3%81%a3%e3%81%9f%e3%82%89%e6%ac%a1%e3%81%aetext-field%e3%81%ab%e3%82%bd%e3%83%95%e3%83%88%e3%82%a6%e3%82%a7%e3%82%a2","status":"publish","type":"post","link":"http:\/\/www.hawk-a.com\/exception_code\/archives\/793","title":{"rendered":"[XCode 4.3]Text Field\u306e\u5165\u529b\u304c\u7d42\u308f\u3063\u305f\u3089\u6b21\u306eText Field\u306b\u30bd\u30d5\u30c8\u30a6\u30a7\u30a2\u30ad\u30fc\u30dc\u30fc\u30c9\u3067\u30ab\u30fc\u30bd\u30eb\u3092\u79fb\u52d5\u3055\u305b\u3066\u6700\u5f8c\u306b\u30dc\u30bf\u30f3\u3092\u62bc\u3059\u65b9\u6cd5"},"content":{"rendered":"<p><img loading=\"lazy\" decoding=\"async\" src=\"http:\/\/www.hawk-a.com\/exception_code\/wp-content\/uploads\/2013\/09\/bloggerXcode-icon-375x375-75.png\" alt=\"Xcode icon 375x375 75\" title=\"Xcode-icon-375x375-75.png\" border=\"0\" width=\"375\" height=\"375\" \/><\/p>\n<p>XCode\u3092\u3057\u3053\u3057\u3053\u3084\u3063\u3066\u304a\u308a\u307e\u3059\u3002\u307b\u30fc\u304f(@hawk_a)\u3067\u3059\u3002<\/p>\n<p>\u30d7\u30ed\u30b0\u30e9\u30e0\u306e\u4e2d\u8eab\u306f\u3082\u3061\u308d\u3093\u5927\u4e8b\u306a\u3093\u3067\u3059\u304c\u3001\u30a2\u30d7\u30ea\u306f\u64cd\u4f5c\u6027\u3082\u975e\u5e38\u306b\u91cd\u8981\u3067\u3054\u3056\u3044\u307e\u3059\u3002<\/p>\n<p>\u306a\u304b\u3067\u3082\u6587\u5b57\u5165\u529b\u3092\u884c\u3046\u30c6\u30ad\u30b9\u30c8\u30d5\u30a3\u30fc\u30eb\u30c9\u306e\u5165\u529b\u30ab\u30fc\u30bd\u30eb(\u5165\u529b\u4f4d\u7f6e\u3092\u793a\u3059\u5370)\u304c\u3001\u3042\u308c\u3088\u3042\u308c\u3088\u3068\u30b9\u30e0\u30fc\u30ba\u306b\u79fb\u52d5\u3059\u308b\u3068\u3044\u3046\u306e\u306f\u3001\u5927\u5207\u306a\u8981\u7d20\u3060\u3068\u601d\u3063\u3066\u304a\u308a\u307e\u3059\u3002<\/p>\n<p>\u306a\u306e\u3067\u305d\u306e\u65b9\u6cd5\u3092\u3002<\/p>\n<p><!--more--><\/p>\n<h2>\u30c6\u30ad\u30b9\u30c8\u30d5\u30a3\u30fc\u30eb\u30c9\u3092\u79fb\u52d5\u3055\u305b\u308b\u65b9\u6cd5<\/h2>\n<p>\u7d50\u8ad6\u304b\u3089\u8a00\u3048\u30701\u884c\u306e\u30b3\u30fc\u30c9\u3092\u66f8\u304f\u3060\u3051\u3067\u5b9f\u884c\u3067\u304d\u307e\u3059\u3002<\/p>\n<p>\u3067\u306f\u3084\u3063\u3066\u307f\u307e\u3057\u3087\u3046\u3002<\/p>\n<p>\u4eca\u56de\u306f\u3001<\/p>\n<ul>\n<li>\u30c6\u30ad\u30b9\u30c8\u30d5\u30a3\u30fc\u30eb\u30c9\u306b\u6587\u5b57\u3092\u6253\u3061\u8fbc\u3080\u5ea6\u306b\u6b21\u306e\u30c6\u30ad\u30b9\u30c8\u30d5\u30a3\u30fc\u30eb\u30c9\u306b\u79fb\u52d5<\/li>\n<li>\u6700\u5f8c\u306e\u30c6\u30ad\u30b9\u30c8\u30d5\u30a3\u30fc\u30eb\u30c9\u306b\u6587\u5b57\u3092\u6253\u3061\u8fbc\u3093\u3067\u304b\u3089\u30bd\u30d5\u30c8\u30a6\u30a7\u30a2\u30ad\u30fc\u30dc\u30fc\u30c9\u306e\u300creturn\u300d\u3092\u30bf\u30c3\u30d7<\/li>\n<li>\u30e9\u30d9\u30eb\u306e\u6587\u5b57\u304c\u5909\u308f\u308b<\/li>\n<\/ul>\n<p>\u3068\u3044\u3046\u51e6\u7406\u3092\u66f8\u3044\u3066\u307f\u307e\u3057\u3087\u3046\u3002<\/p>\n<p>\u307e\u305a\u306fStoryBoard\u3067UIButton\u3068UITextField\u3001UILabel\u3092\u8a2d\u7f6e\u3044\u305f\u3057\u307e\u3059\u3002<\/p>\n<p><img loading=\"lazy\" decoding=\"async\" title=\"TextEditSample.xcodeproj \u2014 MainStoryboard_iPhone.storyboard-5.png\" src=\"http:\/\/www.hawk-a.com\/exception_code\/wp-content\/uploads\/2012\/05\/abf02bffbf0e0f6c60a09b75c6cf34ee.png\" alt=\"TextEditSample xcodeproj  MainStoryboard iPhone storyboard 5\" width=\"333\" height=\"480\" border=\"0\" \/><\/p>\n<p>\u00a0<\/p>\n<p>\u305d\u3057\u3066\u3001\u30d7\u30ed\u30b8\u30a7\u30af\u30c8\u306e\u30d8\u30c3\u30c0\u30fc\u30d5\u30a1\u30a4\u30eb(.h\u306e\u307b\u3046)\u306b\u4ee5\u4e0b\u306e\u69d8\u306a\u611f\u3058\u3067\u5ba3\u8a00\u3092\u3057\u3066\u3001StoryBoard\u3067\u30a2\u30a6\u30c8\u30ec\u30c3\u30c8\u3068\u30a2\u30af\u30b7\u30e7\u30f3\u3092\u3064\u306a\u3052\u307e\u3059\u3002<\/p>\n<p>\u7e4b\u304c\u3063\u3066\u308c\u3070\u5de6\u306e\u25ef\u304c\u25ce\u306b\u306a\u308a\u307e\u3059\u3002<\/p>\n<p><img loading=\"lazy\" decoding=\"async\" title=\"TextEditSample.xcodeproj \u2014 ViewController.h-3.png\" src=\"http:\/\/www.hawk-a.com\/exception_code\/wp-content\/uploads\/2012\/05\/3351f2db109ea2ecbf00246451bda972.png\" alt=\"TextEditSample xcodeproj  ViewController h 3\" width=\"500\" height=\"375\" border=\"0\" \/><\/p>\n<pre class=\"prettyprint\">\r\n@interface ViewController : UIViewController { \r\n    \/\/ \u30c6\u30ad\u30b9\u30c8\u30d5\u30a3\u30fc\u30eb\u30c9\r\n    IBOutlet UITextField *text1;\r\n    IBOutlet UITextField *text2;\r\n    IBOutlet UITextField *text3;\r\n\r\n    \/\/ \u30dc\u30bf\u30f3\r\n    IBOutlet UIButton *button;\r\n    \/\/ \u30e9\u30d9\u30eb\r\n    IBOutlet UILabel *label;\r\n}\r\n\r\n- (IBAction)text1_end:(id)sender;\r\n- (IBAction)text2_end:(id)sender;\r\n- (IBAction)text3_end:(id)sender;\r\n- (IBAction)button_down:(id)sender;\r\n\r\n@end\r\n<\/pre>\n<p>\u30a2\u30a6\u30c8\u30ec\u30c3\u30c8\u306f\u3053\u3093\u306a\u611f\u3058\u3002<\/p>\n<p><img loading=\"lazy\" decoding=\"async\" title=\"TextEditSample.xcodeproj \u2014 MainStoryboard_iPhone.storyboard.png\" src=\"http:\/\/www.hawk-a.com\/exception_code\/wp-content\/uploads\/2012\/05\/185760e23bd447c51882404547c1ee30.png\" alt=\"TextEditSample xcodeproj  MainStoryboard iPhone storyboard\" width=\"258\" height=\"124\" border=\"0\" \/><\/p>\n<p>\u00a0<\/p>\n<p>\u30a2\u30af\u30b7\u30e7\u30f3\u306f\u3053\u3093\u306a\u611f\u3058\u3002<\/p>\n<p>\u30dc\u30bf\u30f3\u306f\u300cTouch Down\u300d\u3001\u30c6\u30ad\u30b9\u30c8\u30d5\u30a3\u30fc\u30eb\u30c9\u306f\u300cDid End On Exit\u300d\u3067\u3064\u306a\u3052\u307e\u3057\u3087\u3046\u3002<\/p>\n<p><img loading=\"lazy\" decoding=\"async\" title=\"TextEditSample.xcodeproj \u2014 MainStoryboard_iPhone.storyboard-3.jpg\" src=\"http:\/\/www.hawk-a.com\/exception_code\/wp-content\/uploads\/2012\/05\/4232eb323836235cabec0eb1e4a9b0e8.jpg\" alt=\"TextEditSample xcodeproj  MainStoryboard iPhone storyboard 3\" width=\"258\" height=\"137\" border=\"0\" \/><\/p>\n<p>\u00a0<\/p>\n<p>\u3064\u3044\u3067\u306bStoryBoard\u3067\u3001\u305d\u308c\u305e\u308c\u306eUITextField\u306e\u300cReturn Key\u300d\u3092Next\u3068\u304b\u306b\u5909\u3048\u3066\u3084\u308c\u3070\u305d\u308c\u3063\u307d\u304f\u306a\u308a\u307e\u3059\u3002<\/p>\n<p><img loading=\"lazy\" decoding=\"async\" title=\"TextEditSample.xcodeproj \u2014 MainStoryboard_iPhone.storyboard-4-1.jpg\" src=\"http:\/\/www.hawk-a.com\/exception_code\/wp-content\/uploads\/2012\/05\/6a935a7383c3ff4d1afbedbb6802bc81.jpg\" alt=\"TextEditSample xcodeproj  MainStoryboard iPhone storyboard 4 1\" width=\"259\" height=\"152\" border=\"0\" \/><\/p>\n<p>\u00a0<\/p>\n<p>\u3093\u3067\u3001\u5b9f\u88c5\u30d5\u30a1\u30a4\u30eb(.m)\u306b\u51e6\u7406\u3092\u30ab\u30ad\u30ab\u30ad\u3057\u3066\u3044\u304d\u307e\u3059\u3002<\/p>\n<p><img loading=\"lazy\" decoding=\"async\" title=\"TextEditSample.xcodeproj \u2014 ViewController.m.png\" src=\"http:\/\/www.hawk-a.com\/exception_code\/wp-content\/uploads\/2012\/05\/cdcb3928b6266f003e9e63babef14835.png\" alt=\"TextEditSample xcodeproj  ViewController m\" width=\"358\" height=\"242\" border=\"0\" \/><\/p>\n<p>[\u6b21\u306e\u30c6\u30ad\u30b9\u30c8\u30d5\u30a3\u30fc\u30eb\u30c9 becomeFirstResponder]\u3067\u30ab\u30fc\u30bd\u30eb\u304c\u79fb\u52d5\u3057\u3066\u3001\u6700\u5f8c\u306e\u30c6\u30ad\u30b9\u30c8\u30d5\u30a3\u30fc\u30eb\u30c9\u306b\u306fbutton_down\u306e\u51e6\u7406\u3092\u5b9f\u884c\u3055\u305b\u308b\u3088\u3046\u306a\u8a18\u8ff0\u3092\u3057\u3066\u3044\u307e\u3059\u3002<\/p>\n<pre class=\"prettyprint\">\r\n- (IBAction)text1_end:(id)sender {\r\n    [text2 becomeFirstResponder];\r\n}\r\n\r\n- (IBAction)text2_end:(id)sender {\r\n    [text3 becomeFirstResponder];\r\n}\r\n\r\n- (IBAction)text3_end:(id)sender {\r\n    [self button_down:self];\r\n}\r\n\r\n- (IBAction)button_down:(id)sender {\r\n    label.text = @&quot;\u304a\u8336\uff01&quot;;\r\n} \r\n<\/pre>\n<p>\u3082\u3061\u308d\u3093\u3001\u6700\u5f8c\u306e\u30c6\u30ad\u30b9\u30c8\u30d5\u30a3\u30fc\u30eb\u30c9\u306b\u76f4\u63a5\u51e6\u7406\u3092\u66f8\u3044\u3066\u3084\u3063\u3066\u3082OK\uff01<br \/>\n\u3093\u3067\u5b9f\u884c\u3059\u308b\u3068\u3001\u30ab\u30fc\u30bd\u30eb\u304c\u79fb\u52d5\u3059\u308b\u306f\u305a\u3067\u3059\u3002<\/p>\n<p><img loading=\"lazy\" decoding=\"async\" title=\"iOS\u30b7\u30df\u30e5\u30ec\u30fc\u30bf-3.jpg\" src=\"http:\/\/www.hawk-a.com\/exception_code\/wp-content\/uploads\/2012\/05\/6ddffd98afbb234bb850936c6de81a0c.jpg\" alt=\"IOS\u30b7\u30df\u30e5\u30ec\u30fc\u30bf 3\" width=\"320\" height=\"475\" border=\"0\" \/><\/p>\n<p>\u6700\u5f8c\u306b\u3053\u3046\u306a\u308c\u3070\u6210\u529f\u3067\u3059\u3002\u4f0a\u85e4\u5712\u3002<\/p>\n<p><img loading=\"lazy\" decoding=\"async\" title=\"iOS\u30b7\u30df\u30e5\u30ec\u30fc\u30bf.jpg\" src=\"http:\/\/www.hawk-a.com\/exception_code\/wp-content\/uploads\/2012\/05\/49b20a5beb763d2ad0463141b14500fc.jpg\" alt=\"IOS\u30b7\u30df\u30e5\u30ec\u30fc\u30bf\" width=\"316\" height=\"340\" border=\"0\" \/><\/p>\n","protected":false},"excerpt":{"rendered":"<p>XCode\u3092\u3057\u3053\u3057\u3053\u3084\u3063\u3066\u304a\u308a\u307e\u3059\u3002\u307b\u30fc\u304f(@hawk_a)\u3067\u3059\u3002 \u30d7\u30ed\u30b0\u30e9\u30e0\u306e &#8230; <\/p>\n","protected":false},"author":1,"featured_media":2108,"comment_status":"open","ping_status":"closed","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[365],"tags":[],"aioseo_notices":[],"_links":{"self":[{"href":"http:\/\/www.hawk-a.com\/exception_code\/wp-json\/wp\/v2\/posts\/793"}],"collection":[{"href":"http:\/\/www.hawk-a.com\/exception_code\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"http:\/\/www.hawk-a.com\/exception_code\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"http:\/\/www.hawk-a.com\/exception_code\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"http:\/\/www.hawk-a.com\/exception_code\/wp-json\/wp\/v2\/comments?post=793"}],"version-history":[{"count":1,"href":"http:\/\/www.hawk-a.com\/exception_code\/wp-json\/wp\/v2\/posts\/793\/revisions"}],"predecessor-version":[{"id":2122,"href":"http:\/\/www.hawk-a.com\/exception_code\/wp-json\/wp\/v2\/posts\/793\/revisions\/2122"}],"wp:featuredmedia":[{"embeddable":true,"href":"http:\/\/www.hawk-a.com\/exception_code\/wp-json\/wp\/v2\/media\/2108"}],"wp:attachment":[{"href":"http:\/\/www.hawk-a.com\/exception_code\/wp-json\/wp\/v2\/media?parent=793"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"http:\/\/www.hawk-a.com\/exception_code\/wp-json\/wp\/v2\/categories?post=793"},{"taxonomy":"post_tag","embeddable":true,"href":"http:\/\/www.hawk-a.com\/exception_code\/wp-json\/wp\/v2\/tags?post=793"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}