2016-06-23 74 views
0

以下のようなUITableViewでは、チェックマークボタンをUITableViewCellの左側から右側に移動する簡単な方法があります側?Swiftでは、UITableView編集モードのチェックマークの位置を左側から右側に変更します

enter image description here

+0

は、独自のチェックマークを確認します。カスタムソリューションを実装しているので、これをそのまま処理する必要があります。 – TheCodingArt

答えて

2

はい、あなたは以下のようなUITableViewCellaccessoryViewを使用してこれを行うことができます。

cell.accessoryType = .Checkmark 
cell.accessoryView = UIView(frame: CGRectMake(0, 0, 20, 20)) //You can change to UIButton with your own custom checkmark button 
cell.accessoryView.backgroundColor = UIColor.blueColor() //change to your color 
関連する問題