{"id":5019,"date":"2016-11-10T10:00:43","date_gmt":"2016-11-10T01:00:43","guid":{"rendered":"https:\/\/www.gigas-jp.com\/appnews\/?p=5019"},"modified":"2016-11-10T09:29:50","modified_gmt":"2016-11-10T00:29:50","slug":"%e6%96%b0%e4%ba%ba%e5%a5%ae%e9%97%98%e8%a8%9819","status":"publish","type":"post","link":"https:\/\/www.gigas-jp.com\/appnews\/archives\/5019","title":{"rendered":"\u65b0\u4eba\u596e\u95d8\u8a1819"},"content":{"rendered":"<h3>iOS\u5165\u9580<\/h3>\n<p>\u4eca\u56de\u306f\u3001\u521d\u3081\u3066AppleWatch\u306e\u958b\u767a\u3092\u884c\u3046\u4e8b\u306b\u306a\u308a\u3001\u305d\u306e\u6642\u5fc5\u8981\u306b\u306a\u3063\u305f\u5b9f\u88c5\u306e\u4e00\u3064\u3068\u3057\u3066\u3001Table\u3092\u5b9f\u88c5\u3057\u3066\u307f\u308b\u4e8b\u306b\u3057\u307e\u3059\u3002<!--more--><\/p>\n<p>iOS\u306eTablefView\u3092\u4f7f\u3063\u305f\u30ea\u30b9\u30c8\u3068\u306f\u3001\u5b9f\u88c5\u304c\u4e8b\u306a\u308b\u306e\u3067\u3001\u30e1\u30e2\u3068\u3057\u3066\u3001\u6b8b\u3057\u3066\u304a\u304d\u305f\u3044\u3068\u601d\u3044\u307e\u3057\u305f\u3002<\/p>\n<p>iOS\u306fUIKit\u3092\u4f7f\u3046\u4e8b\u304c\u524d\u63d0\u3067\u3059\u304c\u3001AppleWatch\u306e\u5834\u5408\u306f\u3001WatchKit\u3068\u3044\u3046\u30d5\u30ec\u30fc\u30e0\u30ef\u30fc\u30af\u3092\u3064\u304b\u3044\u307e\u3059\u3002<br \/>\nUI\u306b\u3064\u3044\u3066\u306f\u3001\u5272\u611b\u3057\u307e\u3059\u304c\u3001iOS\u3067\u30ec\u30a4\u30a2\u30a6\u30c8\u3092\u4f5c\u6210\u3059\u308b\u6642\u306e\u3088\u3046\u306b\u3001\u30b3\u30fc\u30c9\u3067addSubView\u30e1\u30bd\u30c3\u30c9\u306a\u3069\u3092\u4f7f\u3063\u3066\u3001\u52d5\u7684\u306bUI\u3092\u914d\u7f6e\u3057\u305f\u308a\u3059\u308b\u4e8b\u306f\u51fa\u6765\u305a\u3001StoryBord\u3067\u30b5\u30a4\u30ba\u3092\u6307\u5b9a\u3057\u914d\u7f6e\u3057\u3066\u3044\u304d\u307e\u3059\u3002<br \/>\n\u307e\u305f\u3001CGRectMake\u30e1\u30bd\u30c3\u30c9\u306a\u3069\u306e\u30b5\u30a4\u30ba\u3084\u3001\u4f4d\u7f6e\u3092\u6c7a\u5b9a\u3059\u308b\u3088\u3046\u306a\u3001\u30e1\u30bd\u30c3\u30c9\u3082\u4f7f\u3048\u306a\u3044\u305f\u3081\u3001UI\u306e\u914d\u7f6e\u306b\u95a2\u3057\u3066\u306f\u3001\u5168\u3066StoryBord\u3092\u5229\u7528\u3068\u3044\u3046\u4e8b\u306b\u306a\u308a\u307e\u3059\u3002<\/p>\n<p><strong>[\u30ec\u30a4\u30a2\u30a6\u30c8]<\/strong><\/p>\n<p><img loading=\"lazy\" class=\"aligncenter wp-image-5023 \" src=\"\/appnews\/wp-content\/uploads\/sites\/4\/2016\/11\/layout.png\" alt=\"layout\" width=\"198\" height=\"149\" \/><\/p>\n<p>iOS\u3068\u306e\u9055\u3044\u306f\u3001\u30ec\u30a4\u30a2\u30a6\u30c8\u5168\u4f53\u306b\u8a00\u3048\u308b\u4e8b\u3067\u3059\u304c\u3001content\u3084view\u3068\u3044\u3046\u3082\u306e\u306f\u7121\u304f\u3001\u8fd1\u3044\u3082\u306e\u3068\u3057\u3066\u3001Group\u3068\u3044\u3046UI\u304c\u3042\u308a\u3001\u3053\u308c\u3092\u30d9\u30fc\u30b9\u306b\u30ec\u30a4\u30a2\u30a6\u30c8\u3092\u7d44\u3093\u3067\u3044\u304d\u307e\u3059\u3002<\/p>\n<p>\u4eca\u56de\u306e\u30ea\u30b9\u30c8\u3067\u306f\u3001label\u306b\u3066\u30c6\u30ad\u30b9\u30c8\u306e\u307f\u306e\u8868\u793a\u3092\u884c\u3044\u307e\u3059\u304c\u3001Image\u306a\u3069\u306eUI\u3082\u30bb\u30eb\u306b\u914d\u7f6e\u3057\u3066\u3044\u304f\u4e8b\u304c\u3067\u304d\u307e\u3059\u3002<\/p>\n<p>\u30bb\u30eb\u5185\u306eUI\uff08\u4eca\u56de\u306flabel\uff09\u3092\u3069\u306e\u3088\u3046\u306b\u3001\u8a2d\u5b9a\u3059\u308b\u304b\u60a9\u3093\u3060\u306e\u3067\u3001\u30e1\u30e2\u3057\u3066\u304a\u304d\u307e\u3059\u3002<\/p>\n<p>\u307e\u305a\u3001\u30bb\u30eb\u306b\u914d\u7f6e\u3057\u305f\u30aa\u30d6\u30b8\u30a7\u30af\u30c8\u3092\u7ba1\u7406\u3059\u308b\u30af\u30e9\u30b9\u3092\u4f5c\u6210\u3057\u307e\u3059\u3002<\/p>\n<p><img loading=\"lazy\" class=\"aligncenter wp-image-5024 \" src=\"\/appnews\/wp-content\/uploads\/sites\/4\/2016\/11\/tableRow.png\" alt=\"tablerow\" width=\"390\" height=\"74\" \/><\/p>\n<p>\u305d\u3053\u306b\u3001\u30d1\u30fc\u30c4\u3092\u30a2\u30a6\u30c8\u30ec\u30c3\u30c8\u63a5\u7d9a\u3057\u307e\u3059\u3002\u6ce8\u610f\u70b9\u3068\u3057\u3066\u3001\u30af\u30e9\u30b9\u3068\u95a2\u9023\u4ed8\u3051\u3057\u306a\u3051\u308c\u3070\u3001\u63a5\u7d9a\u306f\u3067\u304d\u305a\u3001\u5fc5\u305a\u3001UI\u306eTableRowController\u3092\u9078\u629e\u3057\u3001Show the Identifire\u30a4\u30f3\u30b9\u30da\u30af\u30bf\u30fc\u306b\u3066\u30af\u30e9\u30b9\u540d\u3001Show the Attribute Inspector\u306b\u3066\u3001\u8b58\u5225\u5b50\u3092\u8a2d\u5b9a\u3057\u307e\u3059\u3002<\/p>\n<p>&nbsp;<\/p>\n<p><strong>[\u30bb\u30eb\u306e\u884c\u6570]<\/strong><\/p>\n<pre><span class=\"n\">iOS\u306enumberOfRowsInSection\u30e1\u30bd\u30c3\u30c9\u3067\u306f\u306a\u304f20\u884c\u76ee\u306e<\/span>setNumberOfRows\u306b\u3088\u3063\u3066\u884c\u3044\u307e\u3059\u3002\r\n\u5f15\u6570\u306b\u884c\u6570\u3068StoryBord\u3067\u8a2d\u5b9a\u3057\u305f\u8b58\u5225\u5b50\u3092\u6307\u5b9a\u3057\u307e\u3059\u3002\r\n\u3053\u306e\u5834\u5408\u306f\u5b9a\u6570items\u306e\u500b\u6570\u306f5\u3068\u306a\u308a\u307e\u3059\u3002\r\n\r\n<img loading=\"lazy\" class=\"aligncenter wp-image-5021 \" src=\"\/appnews\/wp-content\/uploads\/sites\/4\/2016\/11\/interfacecontroller.png\" alt=\"interfacecontroller\" width=\"584\" height=\"182\" \/>\r\n\r\n\r\n<strong>[\u30bb\u30eb\u306e\u5185\u5bb9]\r\n<\/strong><\/pre>\n<pre><span class=\"n\">iOS\u3067\u306fcellForRowAtIndexPath\u30e1\u30bd\u30c3\u30c9\u304c\u3042\u308a\u307e\u3057\u305f\u304c\u76f8\u5bfe\u7684\u306b22\u884c\u76ee\u306e\r\nrowController(at index:Int) -&gt; Any? \u3068\u3044\u3046\u30e1\u30bd\u30c3\u30c9\u304c\u3042\u308b\u306e\u3067\u3001\r\n<\/span>\u3053\u308c\u3092\u8981\u7d20\u5206\u3060\u3051\u53cd\u5fa9\u51e6\u7406\u3092\u884c\u3044\u3001label\u7b49\u306b\u3001\u8ffd\u52a0\u3057\u3066\u3044\u304f\u5f62\u306b\u306a\u308a\u307e\u3059\u3002\r\n\r\n<img loading=\"lazy\" class=\"aligncenter size-medium wp-image-5027\" src=\"\/appnews\/wp-content\/uploads\/sites\/4\/2016\/11\/list-262x300.png\" alt=\"list\" width=\"262\" height=\"300\" srcset=\"https:\/\/www.gigas-jp.com\/appnews\/wp-content\/uploads\/sites\/4\/2016\/11\/list-262x300.png 262w, https:\/\/www.gigas-jp.com\/appnews\/wp-content\/uploads\/sites\/4\/2016\/11\/list.png 264w\" sizes=\"(max-width: 262px) 100vw, 262px\" \/>\r\n\r\n\r\n<strong>[\u30bb\u30eb\u306e\u30bf\u30c3\u30d7]<\/strong>\r\n\u30bb\u30eb\u306e\u30bf\u30c3\u30d7\u306b\u95a2\u3057\u3066\u306f\u3001\u304a\u306a\u3058\u307f\u306e<span class=\"syntax-identifier\">didSelect\u30e1\u30bd\u30c3\u30c9\u304c\u5b58\u5728\u3059\u308b\u306e\u3067\u3001\u3053\u308c\u3092\u5229\u7528\u3059\u308b\u3060\u3051\u3067\u3059\u3002\r\n<img loading=\"lazy\" class=\"aligncenter wp-image-5022 \" src=\"\/appnews\/wp-content\/uploads\/sites\/4\/2016\/11\/didselect.png\" alt=\"didselect\" width=\"696\" height=\"59\" \/><\/span><\/pre>\n<p>\u3053\u3061\u3089\u306erowIndexPath\u306b\u3066\u3001\u884c\u756a\u53f7(\uff10\u304b\u3089\u59cb\u307e\u308b)\u304c\u53d6\u5f97\u3057\u307e\u3059\u3002\u5185\u90e8\u3067Switch\u6587\u3092\u4f7f\u3044\u30bb\u30eb\u3092\u5224\u5225\u3059\u308b\u4f7f\u3044\u65b9\u304c\u3067\u304d\u305d\u3046\u3067\u3059\u3002<\/p>\n<p>&nbsp;<\/p>\n<h3>\u307e\u3068\u3081<\/h3>\n<ul>\n<li><strong>\u30fb\u3000<\/strong>iOS\u307b\u3069\u3001\u7d30\u304b\u304f\u30c6\u30fc\u30d6\u30eb\u3092\u30ab\u30b9\u30bf\u30de\u30a4\u30ba\u3059\u308b\u4e8b\u304c\u3067\u304d\u306a\u3044\u305f\u3081\u3001\u72ec\u81ea\u3067\u4f5c\u6210\u3057\u3066\u3044\u304f\u5fc5\u8981\u304c\u3042\u308b\u3068\u611f\u3058\u307e\u3057\u305f\u3002\u4f8b\u3048\u3070\u3001\u30d8\u30c3\u30c0\u30fc\u306f\u30e9\u30d9\u30eb\u3067\u5b9f\u88c5\u3059\u308b\u306a\u3069\u3057\u3066\u3001\u64ec\u4f3c\u7684\u306b\u518d\u73fe\u3067\u304d\u305d\u3046\u3067\u3059\u3002<\/li>\n<li><strong>\u30fb\u3000<\/strong>\u30ab\u30b9\u30bf\u30e0\u30af\u30e9\u30b9\u3092\u4f5c\u6210\u3059\u308b\u6642\u306f\u3001NSObject\u306e\u30b5\u30d6\u30af\u30e9\u30b9\u3092\u4f5c\u308b\u4e8b\u3067\u3001\u30bb\u30eb\u3092\u30ab\u30b9\u30bf\u30de\u30a4\u30ba\u3067\u304d\u308b\u3068\u3044\u3046\u4e8b\u3067\u3059\u304c\u3001\u3053\u306e\u3042\u305f\u308a\u306b\u95a2\u3057\u3066\u306f\u3001iOS\u3067\u3044\u3046\u3068\u3053\u308d\u306eUITableCell\u306b\u4f3c\u3066\u3044\u308b\u304b\u3068\u304a\u3082\u3044\u307e\u3059\u3002<\/li>\n<li><strong>\u30fb\u3000<\/strong>\u30bb\u30eb\u30bf\u30c3\u30d7\u6642\u306e\u51e6\u7406\u3092\u8a18\u8ff0\u3059\u308b\u3001didSelect\u3067\u306f\u3001\u30bb\u30eb\u3092\u30bf\u30c3\u30d7\u3057\u3066presentController\u30e1\u30bd\u30c3\u30c9\u7b49\u3092\u4f7f\u3063\u3066\u8a73\u7d30\u753b\u9762\u3078\u9077\u79fb\u3059\u308b\u3068\u3044\u3063\u305f\u4f7f\u3044\u65b9\u304c\u51fa\u6765\u305d\u3046\u3067\u3059\u3002<\/li>\n<\/ul>\n<p>&nbsp;<\/p>\n<p>&nbsp;<\/p>\n<div class='wp_social_bookmarking_light'>\n            <div class=\"wsbl_google_plus_one\"><g:plusone size=\"medium\" annotation=\"none\" href=\"https:\/\/www.gigas-jp.com\/appnews\/archives\/5019\" ><\/g:plusone><\/div>\n            <div class=\"wsbl_hatena_button\"><a href=\"\/\/b.hatena.ne.jp\/entry\/https:\/\/www.gigas-jp.com\/appnews\/archives\/5019\" class=\"hatena-bookmark-button\" data-hatena-bookmark-title=\"\u65b0\u4eba\u596e\u95d8\u8a1819\" data-hatena-bookmark-layout=\"standard\" title=\"\u3053\u306e\u30a8\u30f3\u30c8\u30ea\u30fc\u3092\u306f\u3066\u306a\u30d6\u30c3\u30af\u30de\u30fc\u30af\u306b\u8ffd\u52a0\"> <img src=\"\/\/b.hatena.ne.jp\/images\/entry-button\/button-only@2x.png\" alt=\"\u3053\u306e\u30a8\u30f3\u30c8\u30ea\u30fc\u3092\u306f\u3066\u306a\u30d6\u30c3\u30af\u30de\u30fc\u30af\u306b\u8ffd\u52a0\" width=\"20\" height=\"20\" style=\"border: none;\" \/><\/a><script type=\"text\/javascript\" src=\"\/\/b.hatena.ne.jp\/js\/bookmark_button.js\" charset=\"utf-8\" async=\"async\"><\/script><\/div>\n            <div class=\"wsbl_twitter\"><a href=\"https:\/\/twitter.com\/share\" class=\"twitter-share-button\" data-url=\"https:\/\/www.gigas-jp.com\/appnews\/archives\/5019\" data-text=\"\u65b0\u4eba\u596e\u95d8\u8a1819\" data-via=\"GIGASJAPAN_APPS\" data-lang=\"ja\">Tweet<\/a><\/div>\n            <div class=\"wsbl_facebook_like\"><div id=\"fb-root\"><\/div><fb:like href=\"https:\/\/www.gigas-jp.com\/appnews\/archives\/5019\" layout=\"button_count\" action=\"like\" width=\"100\" share=\"false\" show_faces=\"false\" ><\/fb:like><\/div>\n            <div class=\"wsbl_facebook_send\"><div id=\"fb-root\"><\/div><fb:send href=\"https:\/\/www.gigas-jp.com\/appnews\/archives\/5019\" colorscheme=\"light\" ><\/fb:send><\/div>\n    <\/div>\n<br class='wp_social_bookmarking_light_clear' \/>\n","protected":false},"excerpt":{"rendered":"<p>iOS\u5165\u9580 \u4eca\u56de\u306f\u3001\u521d\u3081\u3066AppleWatch\u306e\u958b\u767a\u3092\u884c\u3046\u4e8b\u306b\u306a\u308a\u3001\u305d\u306e\u6642\u5fc5\u8981\u306b\u306a\u3063\u305f\u5b9f\u88c5\u306e\u4e00\u3064\u3068\u3057\u3066\u3001Table\u3092\u5b9f\u88c5\u3057\u3066\u307f\u308b\u4e8b\u306b\u3057\u307e\u3059\u3002<\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":[],"categories":[27,11],"tags":[],"acf":[],"_links":{"self":[{"href":"https:\/\/www.gigas-jp.com\/appnews\/wp-json\/wp\/v2\/posts\/5019"}],"collection":[{"href":"https:\/\/www.gigas-jp.com\/appnews\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/www.gigas-jp.com\/appnews\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/www.gigas-jp.com\/appnews\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/www.gigas-jp.com\/appnews\/wp-json\/wp\/v2\/comments?post=5019"}],"version-history":[{"count":9,"href":"https:\/\/www.gigas-jp.com\/appnews\/wp-json\/wp\/v2\/posts\/5019\/revisions"}],"predecessor-version":[{"id":5034,"href":"https:\/\/www.gigas-jp.com\/appnews\/wp-json\/wp\/v2\/posts\/5019\/revisions\/5034"}],"wp:attachment":[{"href":"https:\/\/www.gigas-jp.com\/appnews\/wp-json\/wp\/v2\/media?parent=5019"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/www.gigas-jp.com\/appnews\/wp-json\/wp\/v2\/categories?post=5019"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/www.gigas-jp.com\/appnews\/wp-json\/wp\/v2\/tags?post=5019"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}