{"id":1233,"date":"2017-10-15T17:15:26","date_gmt":"2017-10-15T08:15:26","guid":{"rendered":"http:\/\/blue-bear.jp\/kb\/?p=1233"},"modified":"2017-10-15T17:15:26","modified_gmt":"2017-10-15T08:15:26","slug":"swift4-start-to-rotate-indicator-on-selected-tableview-cell","status":"publish","type":"post","link":"https:\/\/blue-bear.jp\/kb\/swift4-start-to-rotate-indicator-on-selected-tableview-cell\/","title":{"rendered":"[swift4] Start to rotate indicator on Selected Tableview Cell"},"content":{"rendered":"<p>How to start to rotate indicator on Selected Tableview Cell, is below code<\/p>\n<p>Get cell data by &#8220;tableView.cellForRow(at: indexPath)&#8221;, then get indicate data via tag number from cell data. <\/p>\n<p>Start to rotate indicate with .startAnimating()<\/p>\n<pre>\r\n    func tableView(_ tableView: UITableView, didSelectRowAt indexPath: IndexPath) {\r\n        \r\n        let cell = tableView.cellForRow(at: indexPath)\r\n        let indicator = cell?.contentView.viewWithTag(1) as! UIActivityIndicatorView\r\n        indicator.startAnimating()\r\n\r\n    }\r\n<\/pre>\n","protected":false},"excerpt":{"rendered":"<p>How to start to rota<\/p>\n","protected":false},"author":1,"featured_media":88,"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\/1233"}],"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=1233"}],"version-history":[{"count":1,"href":"https:\/\/blue-bear.jp\/kb\/wp-json\/wp\/v2\/posts\/1233\/revisions"}],"predecessor-version":[{"id":1234,"href":"https:\/\/blue-bear.jp\/kb\/wp-json\/wp\/v2\/posts\/1233\/revisions\/1234"}],"wp:featuredmedia":[{"embeddable":true,"href":"https:\/\/blue-bear.jp\/kb\/wp-json\/wp\/v2\/media\/88"}],"wp:attachment":[{"href":"https:\/\/blue-bear.jp\/kb\/wp-json\/wp\/v2\/media?parent=1233"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/blue-bear.jp\/kb\/wp-json\/wp\/v2\/categories?post=1233"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/blue-bear.jp\/kb\/wp-json\/wp\/v2\/tags?post=1233"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}