{"id":538,"date":"2010-11-19T11:20:09","date_gmt":"2010-11-19T02:20:09","guid":{"rendered":"http:\/\/yamazon.org\/?p=538"},"modified":"2010-11-19T11:20:09","modified_gmt":"2010-11-19T02:20:09","slug":"casestudy1uitableview%e3%81%a7helloworld%e3%82%92%e8%a1%a8%e7%a4%ba%e3%81%95%e3%81%9b%e3%82%8b","status":"publish","type":"post","link":"https:\/\/apr20.net\/?p=538","title":{"rendered":"[1]:UITableView\u3067HelloWorld\u3092\u8868\u793a\u3055\u305b\u308b"},"content":{"rendered":"<p>\u4eca\u56de\u306e\u30c1\u30e5\u30fc\u30c8\u30ea\u30a2\u30eb\u3067\u306f\u3001UITableView\u3092\u4f7f\u3063\u3066\u7c21\u5358\u306a\u30a2\u30d7\u30ea\u30b1\u30fc\u30b7\u30e7\u30f3\u3092\u69cb\u7bc9\u3057\u307e\u3059\u3002<br \/>\n\u304a\u306a\u3058\u307f\u306e&#8221;HelloWorld&#8221;\u3092\u8868\u793a\u3055\u305b\u308b\u30a2\u30d7\u30ea\u3067\u3059\u3002<br \/>\n\u3053\u306e\u30c1\u30e5\u30fc\u30c8\u30ea\u30a2\u30eb\u3067\u306f\u3001Objective-C\u306e\u57fa\u790e\u3092\u7fd2\u5f97\u6e08\u306e\u65b9\u3092\u60f3\u5b9a\u3057\u3066\u3044\u307e\u3059\u3002<\/p>\n<p><strong>\u4eca\u56de\u5b66\u3076\u3053\u3068\uff1a<\/strong><\/p>\n<ul>\n<li><span style=\"color: #008000;\">Navigation-Based Application\u306e\u65b0\u898f\u4f5c\u6210<\/span><\/li>\n<li><span style=\"color: #008000;\">\u30c7\u30d5\u30a9\u30eb\u30c8\u72b6\u614b\u3067\u69cb\u6210\u3055\u308c\u3066\u308b\u30d5\u30a1\u30a4\u30eb\u7fa4\u306b\u3064\u3044\u3066<\/span><\/li>\n<li><span style=\"color: #008000;\">&#8220;HelloWorld&#8221;\u3092\u8868\u793a\u3059\u308b\u305f\u3081\u3001UITableView\u306e\u30bb\u30eb\u306e\u5909\u66f4<br \/>\n<\/span><\/li>\n<\/ul>\n<p><!--more--><\/p>\n<pre><span style=\"color: #ff0000;\">\u3053\u306e\u30c1\u30e5\u30fc\u30c8\u30ea\u30a2\u30eb\u3067\u306f\u3001\u65e2\u306biPhone SDK\u304c\u30a4\u30f3\u30b9\u30c8\u30fc\u30eb\u3055\u308c\n<\/span><span style=\"color: #ff0000;\">Xcode\u306a\u3069\u304c\u5229\u7528\u51fa\u6765\u308b\u74b0\u5883\u3092\u60f3\u5b9a\u3057\u3066\u3044\u307e\u3059\u3002<\/span><\/pre>\n<h4>Navigation-Based Application\u306e\u65b0\u898f\u4f5c\u6210<\/h4>\n<p>Xcode\u3092\u8d77\u52d5\u3057\u3001\u300c\u65b0\u898f\u30d7\u30ed\u30b8\u30a7\u30af\u30c8\u300d\u3092\u9078\u629e\u3057\u307e\u3059\u3002<\/p>\n<p>\u4ee5\u4e0b\u306e\u3088\u3046\u306a\u30a6\u30a4\u30f3\u30c9\u30a6\u304c\u8868\u793a\u3055\u308c\u305f\u3089\u3001\u5de6\u30da\u30a4\u30f3\u5185\u306eiOS &gt; Application \u304c\u9078\u629e\u3055\u308c\u3066\u3044\u308b\u306e\u3092\u78ba\u8a8d\u3001\u300cNavigation-Based Application\u300d\u3092\u9078\u3093\u3067\u3001\u300c\u9078\u629e\u300d\u30dc\u30bf\u30f3\u3092\u62bc\u3059\u3002(Use Core Data for storage \u00a0\u306e\u30c1\u30a7\u30c3\u30af\u306f\u4e0d\u8981\u3002)<\/p>\n<p style=\"text-align: center;\"><a href=\"http:\/\/yamazon.org\/wp-content\/uploads\/2010\/11\/1-1.jpg\"><img loading=\"lazy\" decoding=\"async\" class=\"size-medium wp-image-552 aligncenter\" title=\"1-1\" src=\"http:\/\/yamazon.org\/wp-content\/uploads\/2010\/11\/1-1-300x244.jpg\" alt=\"1-1\" width=\"300\" height=\"244\" \/><\/a><br \/>\n\u305d\u306e\u5f8c\u306b\u8868\u793a\u3055\u308c\u308b\u30d7\u30ed\u30b8\u30a7\u30af\u30c8\u540d\u306f\u300cHelloWorld\u300d\u3068\u3057\u3066\u4fdd\u5b58\u3002<\/p>\n<pre><span style=\"color: #ff0000;\">\u30d7\u30ed\u30b8\u30a7\u30af\u30c8\u540d\u306f\u3001\u81ea\u5206\u3067\u5206\u304b\u308a\u3084\u3059\u3044\u540d\u524d\u306b\u3059\u308c\u3070\u826f\u3044\u306e\u3067\u3059\u304c\u3001\n\u300cHelloWorld\u300d\u4ee5\u5916\u3067\u4fdd\u5b58\u3057\u305f\u5834\u5408\u306f\u3001\u30c7\u30d5\u30a9\u30eb\u30c8\u72b6\u614b\u3067\u4f5c\u6210\u3055\u308c\u308b\n\u30d5\u30a1\u30a4\u30eb\u7fa4\u306e\u540d\u524d\u3082\u5909\u308f\u3063\u3066\u304d\u307e\u3059\u306e\u3067\u3001\u9069\u5b9c\u3001\u8aad\u307f\u304b\u3048\u3066\u304f\u3060\u3055\u3044\u3002<\/span><\/pre>\n<h4>\u30c7\u30d5\u30a9\u30eb\u30c8\u72b6\u614b\u3067\u69cb\u6210\u3055\u308c\u3066\u308b\u30d5\u30a1\u30a4\u30eb\u7fa4\u306b\u3064\u3044\u3066<\/h4>\n<p>\u30d7\u30ed\u30b8\u30a7\u30af\u30c8\u540d\u3092\u6c7a\u5b9a\u5f8c\u3001\u4ee5\u4e0b\u306e\u753b\u50cf\u306e\u3088\u3046\u306b\u3001\u591a\u304f\u306e\u30d5\u30a1\u30a4\u30eb\u304c\u30d7\u30ed\u30b8\u30a7\u30af\u30c8\u306b\u8ffd\u52a0\u3055\u308c\u3001Xcode\u4e0a\u306b\u4e26\u3093\u3067\u3044\u308b\u3068\u601d\u3044\u307e\u3059\u3002<\/p>\n<p style=\"text-align: center;\"><a href=\"http:\/\/yamazon.org\/wp-content\/uploads\/2010\/11\/1-2.jpg\"><img loading=\"lazy\" decoding=\"async\" class=\"size-medium wp-image-556 aligncenter\" title=\"1-2\" src=\"http:\/\/yamazon.org\/wp-content\/uploads\/2010\/11\/1-2-300x256.jpg\" alt=\"1-2\" width=\"300\" height=\"256\" \/><\/a><\/p>\n<p style=\"text-align: left;\">\u3053\u308c\u3089\u306e\u30d5\u30a1\u30a4\u30eb\u7fa4\u306e\u4e2d\u3067\u3082\u3001\u4eca\u56de\u3001\u5909\u66f4\u3059\u308b\u5fc5\u8981\u304c\u3042\u308b\u30d5\u30a1\u30a4\u30eb\u306f\u3001\uff11\u3064\u3060\u3051\u3067\u3059\u306e\u3067\u3001\u5fc3\u914d\u3059\u308b\u5fc5\u8981\u306f\u3042\u308a\u307e\u305b\u3093\u3002<\/p>\n<p style=\"text-align: left;\">\u4ee5\u4e0b\u3001\u5404\u30d5\u30a1\u30a4\u30eb\u306b\u3064\u3044\u3066\u7c21\u5358\u306b\u8aac\u660e\u3057\u307e\u3059\u3002<\/p>\n<ol>\n<li><strong>CoreGraphics.framework, Foundation.framwork, UIKit.framework<br \/>\n<\/strong>\u540d\u524d\u3092\u307f\u308c\u3070\u3001\u691c\u8a0e\u304c\u3064\u304f\u65b9\u3082\u591a\u3044\u304b\u3068\u306f\u601d\u3044\u307e\u3059\u304c\u3001\u4ed6\u306e\u30d7\u30ed\u30b0\u30e9\u30df\u30f3\u30b0\u8a00\u8a9e\u3068\u540c\u69d8\u3001\u3042\u3089\u304b\u3058\u3081\u6e96\u5099\u3055\u308c\u3066\u3044\u308b\u30d5\u30ec\u30fc\u30e0\u30ef\u30fc\u30af(\u95a2\u6570\u30e9\u30a4\u30d6\u30e9\u30ea)\u3067\u3059\u3002<\/li>\n<li><strong>HelloWorld.app<br \/>\n<span style=\"font-weight: normal;\">\u3053\u308c\u304c\u3001iPhone\u306b\u30a4\u30f3\u30b9\u30c8\u30fc\u30eb\u3055\u308c\u308b\u30a2\u30d7\u30ea\u3067\u3059\u3002<\/span><\/strong><\/li>\n<li><strong><span style=\"font-weight: normal;\"><strong>HelloWorld_Prefix.pch<br \/>\n<span style=\"font-weight: normal;\">\u30b3\u30f3\u30d1\u30a4\u30eb\u6642\u306b\u30a4\u30f3\u30af\u30eb\u30fc\u30c9\u3055\u308c\u308b\u30d5\u30a1\u30a4\u30eb\uff1f(\u8a73\u7d30\u4e0d\u660e\u3067\u3059\u3002\u3002\u3002)<\/span><\/strong><\/span><\/strong><\/li>\n<li><strong><span style=\"font-weight: normal;\"><strong><strong>HelloWorldAppDelegate.h<br \/>\n<\/strong><span style=\"font-weight: normal;\">\u5909\u6570\u306e\u5b9a\u7fa9\u304c\u542b\u307e\u308c\u3066\u3044\u308b\u30d8\u30c3\u30c0\u30fc\u30d5\u30a1\u30a4\u30eb\u3067\u3059\u3002C\u3001C++\u306b\u985e\u4f3c\u3002<\/span><\/strong><\/span><\/strong><\/li>\n<li><strong><span style=\"font-weight: normal;\"><strong><span style=\"font-weight: normal;\"><strong>HelloWorldAppDelegate.m<br \/>\n<\/strong>\u3059\u3079\u3066\u306e\u9b54\u6cd5\u306f\u3053\u306e\u30d5\u30a1\u30a4\u30eb\u304b\u3089\u59cb\u307e\u308a\u307e\u3059\u3002\u5b9f\u884c\u306e\u30b9\u30bf\u30fc\u30c8\u5730\u70b9\u3002main.m\u30d5\u30a1\u30a4\u30eb\u306f\u3001\u3053\u306e\u30aa\u30d6\u30b8\u30a7\u30af\u30c8\u3092\u547c\u3073\u51fa\u3057\u307e\u3059\u3002<\/span><\/strong><\/span><\/strong><\/li>\n<li><strong><span style=\"font-weight: normal;\"><strong><span style=\"font-weight: normal;\"><strong>Info.plist<br \/>\n<\/strong><\/span><\/strong>\u3053\u306e\u30d7\u30ed\u30b0\u30e9\u30e0\u306b\u95a2\u3059\u308b\u69d8\u3005\u306a\u30e1\u30bf\u60c5\u5831\u3092\u542b\u3093\u3067\u3044\u307e\u3059\u3002iPhone\u306a\u3069\u5b9f\u6a5f\u3067\u306e\u30c6\u30b9\u30c8\u3092\u3059\u308b\u6642\u307e\u3067\u306f\u3001\u7279\u306b\u7de8\u96c6\u3059\u308b\u6a5f\u4f1a\u306f\u306a\u3044\u3067\u3059\u3002<\/span><\/strong><\/li>\n<li><strong><span style=\"font-weight: normal;\"><strong>main.m<br \/>\n<\/strong>\u591a\u304f\u306e\u30d7\u30ed\u30b0\u30e9\u30df\u30f3\u30b0\u8a00\u8a9e\u3068\u540c\u3058\u3088\u3046\u306b\u3001\u3053\u306e\u30d5\u30a1\u30a4\u30eb\u304b\u3089\u30d7\u30ed\u30b0\u30e9\u30e0\u304c\u5b9f\u884c\u3055\u308c\u307e\u3059\u3002\u4e3b\u306a\u6a5f\u80fd\u306f\u3001\u79c1\u305f\u3061\u306e\u30aa\u30d6\u30b8\u30a7\u30af\u30c8\u3092\u30a4\u30f3\u30b9\u30bf\u30f3\u30b9\u5316\u3057\u3001\u30d7\u30ed\u30b0\u30e9\u30e0\u3092\u8d77\u52d5\u3057\u307e\u3059\u3002\u3053\u306e\u30d5\u30a1\u30a4\u30eb\u3092\u7de8\u96c6\u3059\u308b\u5fc5\u8981\u306f\u3042\u308a\u307e\u305b\u3093\u3002<\/span><\/strong><\/li>\n<li><strong><span style=\"font-weight: normal;\"><strong>MainWindow.xib<br \/>\n<\/strong>\u30e1\u30a4\u30f3\u30a6\u30a4\u30f3\u30c9\u30a6\u306b\u8868\u793a\u3055\u308c\u308b\u898b\u305f\u76ee\u3092\u6c7a\u3081\u308b\u60c5\u5831\u3092\u542b\u3093\u3067\u3044\u307e\u3059\u3002\u3053\u306e\u30d5\u30a1\u30a4\u30eb\u3092\u30c0\u30d6\u30eb\u30af\u30ea\u30c3\u30af\u3059\u308b\u3068\u201dInterface Builder\u201d\u304c\u8d77\u52d5\u3057\u307e\u3059\u3002\u3053\u306e\u30d5\u30a1\u30a4\u30eb\u306f\u3001\u30b3\u30fc\u30c9\u3092\u542b\u307f\u307e\u305b\u3093\u3002<\/span><\/strong><\/li>\n<li><strong><span style=\"font-weight: normal;\"><strong>RootViewController.h, RootViewController.m<br \/>\n<span style=\"font-weight: normal;\">\u30e1\u30a4\u30f3\u30a6\u30a4\u30f3\u30c9\u30a6\u306b\u8ffd\u52a0\u3055\u308c\u3066\u3044\u308bView Controller \u3067\u3059\u3002 Xcode\u3067\u300c<span style=\"outline-width: 0px; outline-style: initial; outline-color: initial; font-size: 12px; vertical-align: baseline; background-image: initial; background-attachment: initial; background-origin: initial; background-clip: initial; background-color: transparent; font-weight: bold; background-position: initial initial; background-repeat: initial initial; padding: 0px; margin: 0px; border: 0px initial initial;\">Navigation-Based Application\u300d\u3092\u9078\u3076\u3068\u30a4\u30f3\u30bf\u30fc\u30d5\u30a7\u30fc\u30b9\u306e\u57fa\u672c\u90e8\u5206\u304c\u8ffd\u52a0\u3055\u308c\u307e\u3059\u3002<\/span><\/span><\/strong><\/span><\/strong><\/li>\n<li><strong> <strong>RootViewController.xib<br \/>\n<span style=\"font-weight: normal;\"> \u30c6\u30fc\u30d6\u30eb\u3092\u30a8\u30df\u30e5\u30ec\u30fc\u30c8\u3059\u308b\u305f\u3081\u306b\u8ffd\u52a0\u3055\u308c\u305f\u30d3\u30e5\u30fc\u3067\u3001\u884c\u3084\u5217\u3092\u3082\u3063\u3066\u3044\u307e\u3059\u3002\u79c1\u305f\u3061\u306f\u3001\u3053\u308c\u3089\u306e\u884c\u306e\u3046\u3061\u306e\uff11\u3064\u306b\u201dHelloWorld\u201d\u3092\u8868\u793a\u3055\u305b\u307e\u3059\u3002 <\/span><\/strong><\/strong><\/li>\n<\/ol>\n<p>\u307e\u305a\u3001\u30b3\u30fc\u30c9\u306e\u7de8\u96c6\u3092\u3059\u308b\u524d\u306b\u3001\u30c7\u30d5\u30a9\u30eb\u30c8\u306e\u72b6\u614b\u3067\u30d3\u30eb\u30c9\uff06\u5b9f\u884c\u3057\u3066\u307f\u307e\u3057\u3087\u3046\u3002<\/p>\n<p>Xcode\u4e0a\u306e\u300c\u30d3\u30eb\u30c9\u3068\u5b9f\u884c\u300d\u30dc\u30bf\u30f3\u3092\u62bc\u3059\u3068\u3001iPhone\u30b7\u30df\u30e5\u30ec\u30fc\u30bf\u304c\u8d77\u52d5\u3057\u3001\u4ee5\u4e0b\u306e\u753b\u50cf\u306e\u3088\u3046\u306a\u3001\u7a7a\u306e\u30c6\u30fc\u30d6\u30eb\u304c\u8868\u793a\u3055\u308c\u308b\u3068\u601d\u3044\u307e\u3059\u3002<\/p>\n<p style=\"text-align: center;\"><a href=\"http:\/\/yamazon.org\/wp-content\/uploads\/2010\/11\/1-3.jpg\"><img loading=\"lazy\" decoding=\"async\" class=\"size-medium wp-image-561 aligncenter\" title=\"1-3\" src=\"http:\/\/yamazon.org\/wp-content\/uploads\/2010\/11\/1-3-160x300.jpg\" alt=\"1-3\" width=\"160\" height=\"300\" \/><\/a><\/p>\n<h4>&#8220;HelloWorld&#8221;\u3092\u8868\u793a\u3059\u308b\u305f\u3081\u3001UITableView\u306e\u30bb\u30eb\u306e\u5909\u66f4<\/h4>\n<h5><span style=\"color: #0000ff;\">\u305d\u308c\u3067\u306f\u30b3\u30fc\u30c9\u3092\u5909\u66f4\u3057\u3066\u3044\u304d\u307e\u3057\u3087\u3046\uff01<\/span><\/h5>\n<p><strong>RootViewController.m<\/strong>\u3092\u958b\u304d\u3001\u7de8\u96c6\u3057\u3066\u3044\u304d\u307e\u3057\u3087\u3046\u3002\u3053\u308c\u306f\u3001\u30c7\u30d5\u30a9\u30eb\u30c8\u3067\u30e1\u30a4\u30f3\u30d3\u30e5\u30fc\u306b\u8ffd\u52a0\u3055\u308c\u3066\u3044\u308b\u30d3\u30e5\u30fc\u30b3\u30f3\u30c8\u30ed\u30fc\u30e9\u3067\u3059\u3002Table View \u306e\u30b9\u30fc\u30d1\u30fc\u30af\u30e9\u30b9\u304b\u3089\u30aa\u30fc\u30d0\u30fc\u30e9\u30a4\u30c9\u3055\u308c\u3066\u3044\u307e\u3059\u3002<\/p>\n<p><strong>numberOfRowsInSection <\/strong>\u304c\u5b9a\u7fa9\u3055\u308c\u3066\u3044\u308b\u7b87\u6240\u3092\u63a2\u3057\u3001\u7de8\u96c6\u3057\u307e\u3059\u3002<\/p>\n<blockquote>\n<p style=\"margin: 0.0px 0.0px 0.0px 0.0px; font: 11.0px Menlo; color: #008400;\">\/\/ Customize the number of rows in the table view.<\/p>\n<p style=\"margin: 0.0px 0.0px 0.0px 0.0px; font: 11.0px Menlo;\">&#8211; (<span style=\"color: #703daa;\">NSInteger<\/span>)tableView:(<span style=\"color: #703daa;\">UITableView<\/span> *)<span style=\"color: #703daa;\">tableView<\/span> numberOfRowsInSection:(<span style=\"color: #703daa;\">NSInteger<\/span>)section {<\/p>\n<p style=\"margin: 0.0px 0.0px 0.0px 0.0px; font: 11.0px Menlo;\"><span style=\"color: #bb2da2;\">return<\/span> <span style=\"color: #252bd8;\">0<\/span>;<\/p>\n<p style=\"margin: 0.0px 0.0px 0.0px 0.0px; font: 11.0px Menlo;\">}<\/p>\n<\/blockquote>\n<p style=\"margin: 0.0px 0.0px 0.0px 0.0px; font: 11.0px Menlo;\">\n<p style=\"margin: 0.0px 0.0px 0.0px 0.0px; font: 11.0px Menlo;\"><strong><span style=\"color: #993300;\">numberOfRowsInSection<\/span><\/strong> \u3053\u306e\u95a2\u6570\u306f\u3001\u30c6\u30fc\u30d6\u30eb\u306b\u300c\u884c\u300d\u304c\u3044\u304f\u3064\u3042\u308b\u304b\u3092\u30a2\u30d7\u30ea\u30b1\u30fc\u30b7\u30e7\u30f3\u306b\u901a\u77e5\u3057\u307e\u3059\u3002\u30c7\u30d5\u30a9\u30eb\u30c8\u3067\u306f\u3001\u3053\u308c\u306f\u300c\uff10\u300d\u3092\u8fd4\u3057\u307e\u3059\u3002<\/p>\n<p style=\"margin: 0.0px 0.0px 0.0px 0.0px; font: 11.0px Menlo;\">\n<p style=\"margin: 0.0px 0.0px 0.0px 0.0px; font: 11.0px Menlo;\">\u4ee5\u4e0b\u306e\u3088\u3046\u306b\u7de8\u96c6\u3057\u307e\u3059\u3002<\/p>\n<p style=\"margin: 0.0px 0.0px 0.0px 0.0px; font: 11.0px Menlo;\">\n<p style=\"margin: 0.0px 0.0px 0.0px 0.0px; font: 11.0px Menlo;\">\n<p style=\"margin: 0.0px 0.0px 0.0px 0.0px; font: 11.0px Menlo;\"><span style=\"color: #bb2da2;\">return<\/span> <span style=\"color: #252bd8;\">0<\/span>;<\/p>\n<p style=\"margin: 0.0px 0.0px 0.0px 0.0px; font: 11.0px Menlo;\">\u2193<\/p>\n<p style=\"margin: 0.0px 0.0px 0.0px 0.0px; font: 11.0px Menlo;\"><span style=\"color: #bb2da2;\">return<\/span> <span style=\"color: #252bd8;\">1<\/span>;<\/p>\n<p style=\"margin: 0.0px 0.0px 0.0px 0.0px; font: 11.0px Menlo;\">\n<p style=\"margin: 0.0px 0.0px 0.0px 0.0px; font: 11.0px Menlo;\">\n<p style=\"margin: 0.0px 0.0px 0.0px 0.0px; font: 11.0px Menlo;\">\u3053\u308c\u3067\u3001\u3053\u306e\u30a2\u30d7\u30ea\u30b1\u30fc\u30b7\u30e7\u30f3\u306b\u3001\u79c1\u305f\u3061\u306e\u30c6\u30fc\u30d6\u30eb\u306b\u306f\u30011\u884c\u5fc5\u8981\u3068\u3044\u3046\u3053\u3068\u304c\u901a\u77e5\u3055\u308c\u3001\u4ee5\u4e0b\u306e\u753b\u50cf\u306e\u3088\u3046\u306b\u6700\u521d\u306e1\u884c\u76ee\u304c\u9078\u629e\u3067\u304d\u308b\u3088\u3046\u306b\u306a\u308a\u307e\u3059\u3002<\/p>\n<p style=\"margin: 0.0px 0.0px 0.0px 0.0px; font: 11.0px Menlo;\">\n<p style=\"margin: 0.0px 0.0px 0.0px 0.0px; font: 11.0px Menlo;\">\n<p style=\"margin: 0.0px 0.0px 0.0px 0.0px; font: 11.0px Menlo;\">\n<p style=\"margin: 0.0px 0.0px 0.0px 0.0px; font: 11.0px Menlo;\"><a href=\"http:\/\/yamazon.org\/wp-content\/uploads\/2010\/11\/1-42.jpg\"><img loading=\"lazy\" decoding=\"async\" class=\"aligncenter size-medium wp-image-570\" title=\"1-4\" src=\"http:\/\/yamazon.org\/wp-content\/uploads\/2010\/11\/1-42-163x300.jpg\" alt=\"1-4\" width=\"163\" height=\"300\" \/><\/a><\/p>\n<p style=\"margin: 0.0px 0.0px 0.0px 0.0px; font: 11.0px Menlo;\">\n<p style=\"margin: 0.0px 0.0px 0.0px 0.0px; font: 11.0px Menlo;\">\n<p style=\"margin: 0.0px 0.0px 0.0px 0.0px; font: 11.0px Menlo;\">\u305d\u308c\u3067\u306f\u3001\u6b21\u306b\u3001<strong>cellForRowAtIndexPath <\/strong>\u304c\u5b9a\u7fa9\u3055\u308c\u3066\u3044\u308b\u7b87\u6240\u3092\u63a2\u3057\u3001\u7de8\u96c6\u3057\u307e\u3059\u3002\u5148\u307b\u3069\u7de8\u96c6\u3057\u305f\u7b87\u6240\u306e\u3059\u3050\u4e0b\u5074\u306b\u3042\u308b\u3068\u601d\u3044\u307e\u3059\u3002<\/p>\n<p style=\"margin: 0.0px 0.0px 0.0px 0.0px; font: 11.0px Menlo;\">\n<p style=\"margin: 0.0px 0.0px 0.0px 0.0px; font: 11.0px Menlo;\">\n<blockquote>\n<p style=\"margin: 0.0px 0.0px 0.0px 0.0px; font: 11.0px Menlo; color: #008400;\">\/\/ Customize the appearance of table view cells.<\/p>\n<p style=\"margin: 0.0px 0.0px 0.0px 0.0px; font: 11.0px Menlo;\">&#8211; (<span style=\"color: #703daa;\">UITableViewCell<\/span> *)tableView:(<span style=\"color: #703daa;\">UITableView<\/span> *)<span style=\"color: #703daa;\">tableView<\/span> cellForRowAtIndexPath:(<span style=\"color: #703daa;\">NSIndexPath<\/span> *)indexPath {<\/p>\n<p style=\"margin: 0.0px 0.0px 0.0px 0.0px; font: 11.0px Menlo; min-height: 13.0px;\">\n<p style=\"margin: 0.0px 0.0px 0.0px 0.0px; font: 11.0px Menlo;\"><span style=\"color: #bb2da2;\">static<\/span> <span style=\"color: #703daa;\">NSString<\/span> *CellIdentifier = <span style=\"color: #d12e1b;\">@&#8221;Cell&#8221;<\/span>;<\/p>\n<p style=\"margin: 0.0px 0.0px 0.0px 0.0px; font: 11.0px Menlo; min-height: 13.0px;\">\n<p style=\"margin: 0.0px 0.0px 0.0px 0.0px; font: 11.0px Menlo; color: #3d1e81;\"><span style=\"color: #000000;\"> <\/span><span style=\"color: #703daa;\">UITableViewCell<\/span><span style=\"color: #000000;\"> *cell = [<\/span><span style=\"color: #703daa;\">tableView<\/span><span style=\"color: #000000;\"> <\/span>dequeueReusableCellWithIdentifier<span style=\"color: #000000;\">:CellIdentifier];<\/span><\/p>\n<p style=\"margin: 0.0px 0.0px 0.0px 0.0px; font: 11.0px Menlo;\"><span style=\"color: #bb2da2;\">if<\/span> (cell == <span style=\"color: #bb2da2;\">nil<\/span>) {<\/p>\n<p style=\"margin: 0.0px 0.0px 0.0px 0.0px; font: 11.0px Menlo; color: #3d1e81;\"><span style=\"color: #000000;\"> cell = [[[<\/span><span style=\"color: #703daa;\">UITableViewCell<\/span><span style=\"color: #000000;\"> <\/span>alloc<span style=\"color: #000000;\">] <\/span>initWithStyle<span style=\"color: #000000;\">:<\/span>UITableViewCellStyleDefault<span style=\"color: #000000;\"> <\/span>reuseIdentifier<span style=\"color: #000000;\">:CellIdentifier] <\/span>autorelease<span style=\"color: #000000;\">];<\/span><\/p>\n<p style=\"margin: 0.0px 0.0px 0.0px 0.0px; font: 11.0px Menlo;\">}<\/p>\n<p style=\"margin: 0.0px 0.0px 0.0px 0.0px; font: 11.0px Menlo; min-height: 13.0px;\">\n<p style=\"margin: 0.0px 0.0px 0.0px 0.0px; font: 11.0px Menlo; color: #008400;\"><span style=\"color: #000000;\"><span style=\"white-space: pre;\"> <\/span><\/span>\/\/ Configure the cell.<\/p>\n<p style=\"margin: 0.0px 0.0px 0.0px 0.0px; font: 11.0px Menlo; min-height: 13.0px;\">\n<p style=\"margin: 0.0px 0.0px 0.0px 0.0px; font: 11.0px Menlo;\"><span style=\"color: #bb2da2;\">return<\/span> cell;<\/p>\n<p style=\"margin: 0.0px 0.0px 0.0px 0.0px; font: 11.0px Menlo;\">}<\/p>\n<\/blockquote>\n<p style=\"margin: 0.0px 0.0px 0.0px 0.0px; font: 11.0px Menlo;\">\n<p style=\"margin: 0.0px 0.0px 0.0px 0.0px; font: 11.0px Menlo;\"><strong><span style=\"color: #993300;\">cellForRowAtIndexPath<\/span> <\/strong>\u3053\u306e\u95a2\u6570\u306f\u3001\u30c6\u30fc\u30d6\u30eb\u5185\u306e\u5404\u884c\u3054\u3068\u306b\uff11\u5ea6\u547c\u3070\u308c\u307e\u3059\u3002\u3053\u308c\u306f\u3001\u7279\u5b9a\u306e\u884c\u306b\u8868\u793a\u3059\u308b\u30b3\u30f3\u30c6\u30f3\u30c4\u3092\u5b9a\u7fa9\u3059\u308b\u5834\u6240\u3067\u3059\u3002\u3053\u306e\u95a2\u6570\u306f\u3001\u6307\u5b9a\u3055\u308c\u305f\u30bb\u30eb\uff08\u884c\uff09\u306e\u30aa\u30d6\u30b8\u30a7\u30af\u30c8\u3092\u4f5c\u6210\u3057\u3001\u305d\u308c\u3092\u8fd4\u3057\u307e\u3059\u3002<\/p>\n<p style=\"margin: 0.0px 0.0px 0.0px 0.0px; font: 11.0px Menlo;\">\u4eca\u56de\u306e\u5834\u5408\u306f\u3001&#8221;HelloWorld&#8221;\u3068\u3044\u3046\u6587\u5b57\u5217\u3092\u8868\u793a\u3055\u305b\u305f\u3044\u306e\u3067\u3001\u4ee5\u4e0b\u306e\u3088\u3046\u306b\u7de8\u96c6\u3057\u307e\u3059\u3002<em>\u659c\u4f53\u306e\u7b87\u6240<\/em>\u304c\u8ffd\u52a0\u3057\u305f\u30b3\u30fc\u30c9\u3067\u3059\u3002<\/p>\n<p style=\"margin: 0.0px 0.0px 0.0px 0.0px; font: 11.0px Menlo;\">\n<blockquote>\n<p style=\"font: normal normal normal 11px\/normal Menlo; color: #008400; margin: 0px;\">\/\/ Customize the appearance of table view cells.<\/p>\n<p style=\"font: normal normal normal 11px\/normal Menlo; margin: 0px;\">&#8211; (<span style=\"color: #703daa;\">UITableViewCell<\/span> *)tableView:(<span style=\"color: #703daa;\">UITableView<\/span> *)<span style=\"color: #703daa;\">tableView<\/span>cellForRowAtIndexPath:(<span style=\"color: #703daa;\">NSIndexPath<\/span> *)indexPath {<\/p>\n<p style=\"font: normal normal normal 11px\/normal Menlo; min-height: 13px; margin: 0px;\">\n<p style=\"font: normal normal normal 11px\/normal Menlo; margin: 0px;\"><span style=\"color: #bb2da2;\">static<\/span> <span style=\"color: #703daa;\">NSString<\/span> *CellIdentifier =\u00a0<span style=\"color: #d12e1b;\">@&#8221;Cell&#8221;<\/span>;<\/p>\n<p style=\"font: normal normal normal 11px\/normal Menlo; min-height: 13px; margin: 0px;\">\n<p style=\"font: normal normal normal 11px\/normal Menlo; color: #3d1e81; margin: 0px;\"><span style=\"color: #703daa;\">UITableViewCell<\/span><span style=\"color: #000000;\"> *cell = [<\/span><span style=\"color: #703daa;\">tableView<\/span>dequeueReusableCellWithIdentifier<span style=\"color: #000000;\">:CellIdentifier];<\/span><\/p>\n<p style=\"font: normal normal normal 11px\/normal Menlo; margin: 0px;\"><span style=\"color: #bb2da2;\">if<\/span> (cell ==\u00a0<span style=\"color: #bb2da2;\">nil<\/span>) {<\/p>\n<p style=\"font: normal normal normal 11px\/normal Menlo; color: #3d1e81; margin: 0px;\"><span style=\"color: #000000;\">cell = [[[<\/span><span style=\"color: #703daa;\">UITableViewCell<\/span><span style=\"color: #000000;\"> <\/span>alloc<span style=\"color: #000000;\">]<\/span>initWithStyle<span style=\"color: #000000;\">:<\/span>UITableViewCellStyleDefaultreuseIdentifier<span style=\"color: #000000;\">:CellIdentifier] <\/span>autorelease<span style=\"color: #000000;\">];<\/span><\/p>\n<p style=\"font: normal normal normal 11px\/normal Menlo; margin: 0px;\">}<\/p>\n<p style=\"font: normal normal normal 11px\/normal Menlo; min-height: 13px; margin: 0px;\">\n<p style=\"margin: 0.0px 0.0px 0.0px 0.0px; font: 11.0px Menlo; color: #d12e1b;\"><span style=\"color: #000000;\"><strong><em><span style=\"color: #999999;\">\/\/ [cell <\/span><\/em><\/strong><\/span><span style=\"color: #3d1e81;\"><strong><em><span style=\"color: #999999;\">setText<\/span><\/em><\/strong><\/span><span style=\"color: #000000;\"><strong><em><span style=\"color: #999999;\">:<\/span><\/em><\/strong><\/span><strong><em><span style=\"color: #999999;\">@&#8221;HelloWorld&#8221;<\/span><\/em><\/strong><span style=\"color: #000000;\"><strong><em><span style=\"color: #999999;\">];<\/span><\/em><\/strong><\/span><\/p>\n<p style=\"font: normal normal normal 11px\/normal Menlo; margin: 0px;\"><span style=\"color: #999999;\">\/\/\u2191\u4e0a\u8a18\u3067\u3082\u8868\u793a\u3055\u308c\u307e\u3059\u304c\u3001iPhone3.0\u4ee5\u964d\u3001\u63a8\u5968\u3055\u308c\u306a\u3044\u3088\u3046\u306b\u306a\u3063\u3066\u3044\u308b\u306e\u3067\u3001\u4ee5\u4e0b\u306b\u5909\u66f4\u3002<\/span><\/p>\n<p style=\"font: normal normal normal 11px\/normal Menlo; margin: 0px;\"><span style=\"color: #999999;\"><br \/>\n<\/span><\/p>\n<p style=\"margin: 0.0px 0.0px 0.0px 0.0px; font: 11.0px Menlo; color: #d12e1b;\">\n<p style=\"margin: 0.0px 0.0px 0.0px 0.0px; font: 11.0px Menlo; color: #d12e1b;\"><span style=\"color: #000000;\"><strong><em>[cell.<\/em><\/strong><\/span><span style=\"color: #703daa;\"><strong><em>textLabel<\/em><\/strong><\/span><span style=\"color: #000000;\"><strong><em> <\/em><\/strong><\/span><span style=\"color: #3d1e81;\"><strong><em>setText<\/em><\/strong><\/span><span style=\"color: #000000;\"><strong><em>:<\/em><\/strong><\/span><strong><em>@&#8221;HelloWorld&#8221;<\/em><\/strong><span style=\"color: #000000;\"><strong><em>];<\/em><\/strong><\/span><\/p>\n<p style=\"margin: 0.0px 0.0px 0.0px 0.0px; font: 11.0px Menlo; color: #d12e1b;\"><span style=\"color: #000000;\"><br \/>\n<\/span><\/p>\n<p style=\"font: normal normal normal 11px\/normal Menlo; color: #008400; margin: 0px;\"><span style=\"color: #000000;\"><span style=\"white-space: pre;\"> <\/span><\/span>\/\/ Configure the cell.<\/p>\n<p style=\"font: normal normal normal 11px\/normal Menlo; min-height: 13px; margin: 0px;\">\n<p style=\"font: normal normal normal 11px\/normal Menlo; margin: 0px;\"><span style=\"color: #bb2da2;\">return<\/span> cell;<\/p>\n<p style=\"font: normal normal normal 11px\/normal Menlo; margin: 0px;\">}<\/p>\n<\/blockquote>\n<p style=\"font: normal normal normal 11px\/normal Menlo; margin: 0px;\">\n<p style=\"font: normal normal normal 11px\/normal Menlo; margin: 0px;\">if\u30d6\u30ed\u30c3\u30af\u306e\u306a\u304b\u3067\u3001\u3059\u3067\u306b\u30bb\u30eb\u304c\u4f5c\u6210\u3055\u308c\u3066\u3044\u306a\u3044\u304b\u3092\u30c1\u30a7\u30c3\u30af\u3057\u3001\u4f5c\u6210\u3055\u308c\u3066\u3044\u306a\u3051\u308c\u3070\u3001\u4f5c\u6210\u3057\u3001\u3082\u3057\u304f\u306f\u3001\u65e2\u306b\u4f5c\u3089\u308c\u3066\u3044\u308b\u30bb\u30eb\u3092\u5229\u7528\u3057\u307e\u3059\u3002<\/p>\n<p style=\"font: normal normal normal 11px\/normal Menlo; margin: 0px;\">\u3053\u306e\u304a\u304b\u3052\u3067\u3001\u95a2\u6570\u304c\u547c\u3070\u308c\u308b\u305f\u3073\u306b\u65b0\u3057\u3044\u30bb\u30eb\u304c\u4f5c\u6210\u3055\u308c\u308b\u3092\u9632\u304e\u307e\u3059\u3002<\/p>\n<p style=\"font: normal normal normal 11px\/normal Menlo; margin: 0px;\">\n<p style=\"font: normal normal normal 11px\/normal Menlo; margin: 0px;\">\u4e0a\u8a18\u306e\u901a\u308a\u3001\u5909\u66f4\u5f8c\u3001\u30d3\u30eb\u30c9\u3057\u3066\u5b9f\u884c\u3059\u308b\u3068\u4ee5\u4e0b\u306e\u753b\u50cf\u306e\u3088\u3046\u306b\u300cHelloWorld\u300d\u3068\u3044\u3046\uff11\u884c\u304c\u8868\u793a\u3055\u308c\u308b\u3068\u601d\u3044\u307e\u3059\u3002<\/p>\n<p style=\"font: normal normal normal 11px\/normal Menlo; margin: 0px;\">\u4ee5\u4e0a\u3067\u3001\u4eca\u56de\u306e\u30c6\u30fc\u30d6\u30eb\u306e\u51fa\u6765\u4e0a\u304c\u308a\u3067\u3059\u3002<\/p>\n<p style=\"font: normal normal normal 11px\/normal Menlo; margin: 0px;\">\n<p style=\"font: normal normal normal 11px\/normal Menlo; margin: 0px;\">\n<p style=\"font: normal normal normal 11px\/normal Menlo; margin: 0px;\"><a href=\"http:\/\/yamazon.org\/wp-content\/uploads\/2010\/11\/1-5.jpg\"><img loading=\"lazy\" decoding=\"async\" class=\"aligncenter size-medium wp-image-572\" title=\"1-5\" src=\"http:\/\/yamazon.org\/wp-content\/uploads\/2010\/11\/1-5-163x300.jpg\" alt=\"1-5\" width=\"163\" height=\"300\" \/><\/a><\/p>\n<p style=\"font: normal normal normal 11px\/normal Menlo; margin: 0px;\">\n<p style=\"margin: 0.0px 0.0px 0.0px 0.0px; font: 11.0px Menlo;\">\n<p style=\"margin: 0.0px 0.0px 0.0px 0.0px; font: 11.0px Menlo;\">\n","protected":false},"excerpt":{"rendered":"<p>\u4eca\u56de\u306e\u30c1\u30e5\u30fc\u30c8\u30ea\u30a2\u30eb\u3067\u306f\u3001UITableView\u3092\u4f7f\u3063\u3066\u7c21\u5358\u306a\u30a2\u30d7\u30ea\u30b1\u30fc\u30b7\u30e7\u30f3\u3092&#8230;<\/p>\n","protected":false},"author":1,"featured_media":552,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[19],"tags":[87,203],"class_list":["post-538","post","type-post","status-publish","format-standard","has-post-thumbnail","hentry","category-old-blog","tag-iphone","tag-203"],"_links":{"self":[{"href":"https:\/\/apr20.net\/index.php?rest_route=\/wp\/v2\/posts\/538","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/apr20.net\/index.php?rest_route=\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/apr20.net\/index.php?rest_route=\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/apr20.net\/index.php?rest_route=\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/apr20.net\/index.php?rest_route=%2Fwp%2Fv2%2Fcomments&post=538"}],"version-history":[{"count":0,"href":"https:\/\/apr20.net\/index.php?rest_route=\/wp\/v2\/posts\/538\/revisions"}],"wp:featuredmedia":[{"embeddable":true,"href":"https:\/\/apr20.net\/index.php?rest_route=\/"}],"wp:attachment":[{"href":"https:\/\/apr20.net\/index.php?rest_route=%2Fwp%2Fv2%2Fmedia&parent=538"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/apr20.net\/index.php?rest_route=%2Fwp%2Fv2%2Fcategories&post=538"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/apr20.net\/index.php?rest_route=%2Fwp%2Fv2%2Ftags&post=538"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}