uitableview - Swift Watchkit let user move cell (row) in a table when running app -
i have table list order create date using realm database. trying find way let user when using app, drag row (cell) new position in table.
i hoping deletes used:
func tableview(tableview: uitableview, commiteditingstyle editingstyle: uitableviewcelleditingstyle, forrowatindexpath indexpath: nsindexpath) { if (editingstyle == uitableviewcelleditingstyle.delete) { } }
unfortunately, there no editing mode (like 1 in uitableview
) in wkinterfacetable
. also, because there no drag gestures exposed in watchkit, there no way duplicate functionality in current version.
one approach might add own control toggles edit mode, expose buttons in each cell move row or down. require bit of work, , actually, i'm not sure user experience due limited screen real estate.
Comments
Post a Comment