Questions tagged [checkmark]

149 questions
52
votes
8 answers

UITableViewCell checkmark change on select

Am I correct in thinking that to change the checkmark for "on" to "off", I must change the CellAccessoryType between none and checkmark on the didSelectRowAtIndexPath? Because I have done this but I have noticed the behaviour is not perfectly…
Jonathan.
  • 53,997
  • 54
  • 186
  • 290
48
votes
15 answers

UITableViewCell checkmark to be toggled on and off when tapped

I'm working on a tableview I want to be able to tap on each cell and when tapped, it displays a checkmark on the cell Now I have some code that makes this work: // checkmarks when tapped func tableView(tableView: UITableView,…
Jp4Real
  • 1,982
  • 4
  • 18
  • 33
20
votes
3 answers

How to change UITableViewCellAccessoryType.Checkmark's color?

Here's my code: cell.accessoryType = UITableViewCellAccessoryType.Checkmark But when I run the app, I can't see the checkmark. Then I set background color to black, and I can see a white checkmark. How to change checkmark's color to other colors…
PipEvangelist
  • 601
  • 1
  • 7
  • 22
11
votes
1 answer

TableView Cell reuse and unwanted checkmarks - this is killing me

Apple's iOS TableView and cell reuse is killing me. I searched and searched and studied, but can't find good docs or good answers. The problem is that when the TableView reuses cells things like Checkmarks (cell accessory) set on a selected Cell…
nick
  • 1,147
  • 1
  • 11
  • 12
10
votes
4 answers

How to uncheck all rows using UITableViewCellAccessoryCheckmark

I've got a UITableView with each row containing a checkbox using UITableViewCellAccessoryCheckmark. I can't figure out how to uncheck all the checkboxes using the didSelectRowAtIndexPath method. - (void)tableView:(UITableView *)tableView…
Lauren Quantrell
  • 2,647
  • 6
  • 36
  • 49
9
votes
1 answer

How to access checkmark drawable in Android OS?

I want to use Android OS drawables instead of providing my own. How to access check mark icon? I'm looking for check mark without rectagnle arround.
Kostadin
  • 2,499
  • 5
  • 34
  • 58
6
votes
5 answers

Android circle checkmark animation

I'm trying to achieve something similar to the BEMAnimationTypeStroke which can be found in the iOS library BEMCheckBox. I've tried using an animated vector drawable to achieve this, but I do not know how to animate the checkmark inside the circle…
Ionut Negru
  • 6,186
  • 4
  • 48
  • 78
5
votes
2 answers

Adjust custom checkMark position within CheckedTextView

I have a ListView whereby each row contains a CheckedTextView. I am using a custom checkMark attribute, which uses a drawable:
Heelara
  • 861
  • 9
  • 17
5
votes
3 answers

tableview with checkmark and detail disclosure together

I'm making a tableview with multiple row selected option. So, I used the checkmark accessory type action. I also require to edit/rename the text in the selected row. Basically, I need to put checkmark (checkbox) on the left side and detail…
Arun
  • 75
  • 1
  • 7
4
votes
1 answer

How to put checkmark when Menu item selected SwiftUI

Im trying to put checkmark when menu item selected.I tried give a @State var selectedSort : Int = .zero and give id(selectedSort) but It didn't work. How can I solve this problem ? This is my code; struct SortMenuPickerView : View { @Binding var…
Begbie
  • 283
  • 1
  • 17
4
votes
6 answers

How to show check tick mark in Collection view (images)

In Table view we can put checkmark easily on cells. But in Collection View how can we put check mark, when we select a cell (image)? I just took a image view inside the cell and image view and put a tick mark image. My code is below. But it's…
kishor
  • 221
  • 2
  • 14
4
votes
6 answers

UITableView : select row with checkmark but no highlight

Issue: I only want to show the selected cells with checkmark. I don't want the grey highlight. I tried: cell.selectionStyle = UITableViewCellSelectionStyleNone but didn't work. Here is the code: - (UITableViewCell *)tableView:(UITableView…
user3453784
  • 593
  • 3
  • 9
  • 19
4
votes
5 answers

UITableView Checkmarks disappear when scrolling

I have to make checkmarks on a tableView, but if I'm scrolling and one check marked cell is not visible and I scroll back the checkmark disappeared. While running this code var boolArray = [Bool]() func tableView(tableView: UITableView,…
4
votes
2 answers

Using UITableViewCellAccessoryCheckMark

I am trying to make this work but can't seem to wrap my mind around the idea. So far I have it to where you are able to select a cell and it be able to produce a checkmark. Then, when you select a different cell, the previous checkmark would go…
Zack
  • 871
  • 10
  • 24
3
votes
3 answers

android Check mark on button click

On click of a button , a check mark icon should be displayed on the leftmost corner of the button, when reclicked on the same button , the check mark icon should disppear. Could some on help me out in this case?
user1155857
1
2 3
9 10