Пользовательская кнопка Delete При Редактировании в Ячейке UITableView

Аргументы - то, что Вы имеете при вызове подпрограммы. Параметры - то, к чему Вы получаете доступ в подпрограмме.

argle(foo, bar);

foo и bar аргументы.

public static void main(final String[] args) {
    args.length;
}

args параметр.

23
задан Community 23 May 2017 в 12:17
поделиться

2 ответа

luvieere is right -- if you want that same "delete" metaphor, you want to keep it at the red button that Apple provides. Why change it? Its globally recognizable as the standard for delete buttons.

Although, if you want something like Tweetie, where you completely change the behavior of swiping, you could use something like ABTableViewCell where you just draw in your own view. Make a custom table view, override -touchesBegan:withEvent:, and check for touches. Calculate the delta of the two touches (in touchesMoved:withEvent:) and move your own view around.

0
ответ дан 29 November 2019 в 01:58
поделиться

The systemwide standard for the intended list-dive-in action, as you said in the comment on luvieere's answer, would be to use the detail-disclosure (blue circled arrow) cell accessory, not the swipe gesture.

That said, if you still want to use the swipe action for this, there's no way to provide your own button without manually intercepting and completely reimplementing the swipe gesture, like what Tweetie does.

1
ответ дан 29 November 2019 в 01:58
поделиться
Другие вопросы по тегам:

Похожие вопросы: