コメントの1つは、私にユニコード文字を使用させてくれました!彼らはあなたの通常の文字列に追加することができますので、スーパー便利です。
![Useful unicode character examples 3](https://i.stack.imgur.com/MjnU1.png)
だから、あなたが行うすべてはその後、Unicode文字、そして改行(\ n)で、あなたのボタンのタイトル/テキストの文字列を渡すことです:Unicode文字は、のようなものがあります。だから、基本的な構文は次のようになります(私は複数のテーブルを持っているので)簡単に再利用
title: "\u{1234}\n YourText "
私は構造体に望んでいた文字を入れる:
struct cellEditActionIcons {
static var editAction_Arrow = "\u{2191}"
static var editAction_Check = "\u{2713}"
static var editAction_Delete = "\u{2715}"
}
その後、あなたは、このようなボタンを作成することができます:
func tableView(_ tableView: UITableView, editActionsForRowAt indexPath: IndexPath) -> [UITableViewRowAction]? {
var doneBut = UITableViewRowAction (style: .normal, title: "\(cellEditActionIcons.editAction_Check)\n YourText" { action, index in
//Do stuff
}
doneBut.backgroundColor = myColors.someColor
}
あなたは本当にhttp://stackoverflow.com/questions/29421894/uitableviewr([この]のように、答えの束を与えるあなたの質問の答えから 'uitableviewrowactionのimage'を試し、スキル検索にGoogleを改善しようとする必要がありますowaction-image-for-title)または[this](http://stackoverflow.com/questions/27740884/uitableviewrowaction-title-as-image-icon-instead-of-text) – Tj3n
カスタムセルを作成する必要がありますこの種の行動。 –