Problem
UITableViewCellのaccessoryViewのtintColorを変更したい
Solution
アイコンの取得
以下のサイトから、ic_navigate_next
のpng画像をダウンロードし、ios用のアイコンセットをAssets.xcassets
にドラッグ&ドロップする
https://www.google.com/design/icons/#ic_navigate_next
実装
func tableView(tableView: UITableView, cellForRowAtIndexPath indexPath: NSIndexPath) -> UITableViewCell {
let cell = tableView.dequeueReusableCellWithIdentifier("Cell", forIndexPath: indexPath)
let disclosureImage = UIImage(named: "ic_navigate_next")!.imageWithRenderingMode(.AlwaysTemplate)
let disclosureView = UIImageView(image: disclosureImage)
disclosureView.tintColor = UIColor.redColor()
cell.accessoryView = disclosureView
return cell
}