{"id":984,"date":"2017-02-21T10:01:20","date_gmt":"2017-02-21T01:01:20","guid":{"rendered":"http:\/\/blue-bear.jp\/kb\/?p=984"},"modified":"2017-10-06T10:59:03","modified_gmt":"2017-10-06T01:59:03","slug":"swift-%e3%82%ab%e3%82%b9%e3%82%bf%e3%83%a0%e3%82%bb%e3%83%ab%e3%82%92%e4%bd%bf%e7%94%a8%e3%81%97%e3%81%aa%e3%81%84%e3%81%a7%e3%80%81tableview%e3%81%ae%e3%82%bb%e3%83%ab%e3%82%92%e3%82%ab%e3%82%b9","status":"publish","type":"post","link":"https:\/\/blue-bear.jp\/kb\/swift-%e3%82%ab%e3%82%b9%e3%82%bf%e3%83%a0%e3%82%bb%e3%83%ab%e3%82%92%e4%bd%bf%e7%94%a8%e3%81%97%e3%81%aa%e3%81%84%e3%81%a7%e3%80%81tableview%e3%81%ae%e3%82%bb%e3%83%ab%e3%82%92%e3%82%ab%e3%82%b9\/","title":{"rendered":"[swift] \u30ab\u30b9\u30bf\u30e0\u30bb\u30eb\u3092\u4f7f\u7528\u3057\u306a\u3044\u3067\u3001tableview\u306e\u30bb\u30eb\u3092\u30ab\u30b9\u30bf\u30de\u30a4\u30ba\u3059\u308b"},"content":{"rendered":"<h2>\u30ab\u30b9\u30bf\u30e0\u30bb\u30eb\u3092\u4f7f\u7528\u3057\u306a\u3044\u3067\u3001tableview\u306e\u30bb\u30eb\u3092\u30ab\u30b9\u30bf\u30de\u30a4\u30ba\u3059\u308b<\/h2>\n<p>tableview\u306e\u30bb\u30eb\u3092\u30ab\u30b9\u30bf\u30de\u30a4\u30ba\u3059\u308b\u3068\u304d\u306b\u30ab\u30b9\u30bf\u30e0\u30bb\u30eb\u3092\u4f7f\u7528\u3057\u3066\u30ab\u30b9\u30bf\u30de\u30a4\u30ba\u3059\u308b\u3053\u3068\u306f\u3088\u304f\u3042\u308b\u304c\u3001<br \/>\n\u8d85\u5358\u7d14\u306a\u69cb\u6210\u306a\u306e\u306b\u3044\u3061\u3044\u3061\u30ab\u30b9\u30bf\u30de\u30a4\u30ba\u30bb\u30eb\u3092\u4f5c\u308b\u306e\u304c\u5104\u52ab\u306a\u3068\u304d\u306b\u306f\u30ab\u30b9\u30bf\u30e0\u30bb\u30eb\u3092\u4f7f\u7528\u305b\u305a\u306b<br \/>\n\u30bb\u30eb\u3092\u30ab\u30b9\u30bf\u30de\u30a4\u30ba\u3059\u308b\u3053\u3068\u304c\u3067\u304d\u308b<\/p>\n<h3>\u30bb\u30eb\u306eIdentifier\u8a2d\u5b9a<\/h3>\n<p>StoryBoard\u4e0a\u3067\u30ab\u30b9\u30bf\u30e0\u3057\u305f\u3044\u30bb\u30eb\u3092\u9078\u629e\u3057\u3001Identifier\u6b04\u306b\u300cCell\u300d\u3068\u8a2d\u5b9a<\/p>\n<h3>\u30e9\u30d9\u30eb\u3092\u914d\u7f6e\u3057\u3001\u30bf\u30b0\u8a2d\u5b9a<\/h3>\n<p>\u30bb\u30eb\u4e0a\u306b\u7f6e\u304d\u305f\u3044\u30aa\u30d6\u30b8\u30a7\u30af\u30c8\uff08\u4eca\u56de\u306fUILabel\uff09\u3092\u914d\u7f6e\u3057\u3001\u305d\u308c\u305e\u308c\u306b\u30bf\u30b0\u3092\u8a2d\u5b9a\u3059\u308b<br \/>\n<img loading=\"lazy\" decoding=\"async\" class=\"alignnone size-full wp-image-985\" src=\"http:\/\/blue-bear.jp\/kb\/wp-content\/uploads\/2017\/02\/customCell.png\" alt=\"customCell\" width=\"800\" height=\"523\" srcset=\"https:\/\/blue-bear.jp\/kb\/wp-content\/uploads\/2017\/02\/customCell.png 800w, https:\/\/blue-bear.jp\/kb\/wp-content\/uploads\/2017\/02\/customCell-300x196.png 300w, https:\/\/blue-bear.jp\/kb\/wp-content\/uploads\/2017\/02\/customCell-768x502.png 768w\" sizes=\"(max-width: 800px) 100vw, 800px\" \/><\/p>\n<h3>tableView<\/h3>\n<p>cell.viewWithTag(\u30bf\u30b0\u756a\u53f7)\u3067\u30bb\u30eb\u4e0a\u306e\u30aa\u30d6\u30b8\u30a7\u30af\u30c8\u306b\u30a2\u30af\u30bb\u30b9\u3067\u304d\u308b<\/p>\n<pre class=\"\">class ViewController: UIViewController, UITableViewDataSource, UITableViewDelegate {\r\n    \r\n    override func viewDidLoad() {\r\n        super.viewDidLoad()\r\n    }\r\n\r\n    func tableView(tableView: UITableView, numberOfRowsInSection section: Int) -&gt; Int {\r\n        return 1\r\n    }\r\n    \r\n    func tableView(tableView: UITableView, cellForRowAtIndexPath indexPath: NSIndexPath) -&gt; UITableViewCell {\r\n        let cell = tableView.dequeueReusableCellWithIdentifier(\"Cell\") as UITableViewCell\r\n\r\n        var label1 = cell.viewWithTag(1) as UILabel\r\n        label1.text = \"\u30e9\u30d9\u30eb\uff11\"\r\n\r\n        var label2 = cell.viewWithTag(2) as UILabel\r\n        label2.text = \"\u30e9\u30d9\u30eb\uff12\"\r\n        \r\n        return cell\r\n\r\n    }\r\n}\r\n<\/pre>\n","protected":false},"excerpt":{"rendered":"<p>\u30ab\u30b9\u30bf\u30e0\u30bb\u30eb\u3092\u4f7f\u7528\u3057\u306a\u3044\u3067\u3001tablev<\/p>\n","protected":false},"author":1,"featured_media":985,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[13],"tags":[154],"aioseo_notices":[],"_links":{"self":[{"href":"https:\/\/blue-bear.jp\/kb\/wp-json\/wp\/v2\/posts\/984"}],"collection":[{"href":"https:\/\/blue-bear.jp\/kb\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/blue-bear.jp\/kb\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/blue-bear.jp\/kb\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/blue-bear.jp\/kb\/wp-json\/wp\/v2\/comments?post=984"}],"version-history":[{"count":3,"href":"https:\/\/blue-bear.jp\/kb\/wp-json\/wp\/v2\/posts\/984\/revisions"}],"predecessor-version":[{"id":1154,"href":"https:\/\/blue-bear.jp\/kb\/wp-json\/wp\/v2\/posts\/984\/revisions\/1154"}],"wp:featuredmedia":[{"embeddable":true,"href":"https:\/\/blue-bear.jp\/kb\/wp-json\/wp\/v2\/media\/985"}],"wp:attachment":[{"href":"https:\/\/blue-bear.jp\/kb\/wp-json\/wp\/v2\/media?parent=984"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/blue-bear.jp\/kb\/wp-json\/wp\/v2\/categories?post=984"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/blue-bear.jp\/kb\/wp-json\/wp\/v2\/tags?post=984"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}