ios - How to prevent UITableViewCell to use leading space in editing mode? -
i have tableview
, in editing mode not want use leading space, want keep content use full available width.
self.tableview.setediting(true, animated: false)
i set editing style this:
override func tableview(tableview: uitableview, editingstyleforrowatindexpath indexpath: nsindexpath) -> uitableviewcelleditingstyle { return .none }}
uitableviewdelegate
has method purpose
override func tableview(tableview: uitableview, shouldindentwhileeditingrowatindexpath indexpath: nsindexpath) -> bool { return false }
Comments
Post a Comment