Questions tagged [accessoryview]

A view that is used, typically as a control, on the right side of the table cell (normal state).

137 questions
35
votes
9 answers

accessoryButtonTappedForRowWithIndexPath: not getting called

I am creating a Detail disclosure button which is getting populated using an array.... However the accessoryButtonTappedForRowWithIndexPath: function is not being called in my class. It is a TableviewDelegate and TableviewDatasource delegate. -…
jimbob
  • 3,288
  • 11
  • 45
  • 70
34
votes
4 answers

Add a view on top of the keyboard using InputAccessoryView

I'm trying to add a uiview to be on top of the keyboard always. I did it first with KeyboardWillShow/Hide, but it dosen't cover all cases and I'm trying to use inputAccesoryView. this is what I tried: private var accessoryView = UIView(frame:…
user101010
  • 543
  • 1
  • 5
  • 12
34
votes
11 answers

Can a standard accessory view be in a different position within a UITableViewCell?

I want my accessory to be in a slightly different place than normal. Is it possible? This code has no effect: cell.accessoryType = UITableViewCellAccessoryDisclosureIndicator; cell.accessoryView.frame = CGRectMake(5.0, 5.0, 5.0, 5.0);
cannyboy
  • 24,180
  • 40
  • 146
  • 252
30
votes
5 answers

Altering the background color of cell.accessoryView and cell.editingAccessoryView

Whenever I add an accessoryView to my UITableViewCell, it doesn't carry the background color across? I'm setting a UISwitch as my accessoryView, and the color I have set in the cell.backgroundColor property only effects the contentView and not the…
Zak
  • 12,213
  • 21
  • 59
  • 105
14
votes
3 answers

Cell background and accessory

I am trying to set the cell background of my UITableViewCells but I am struggling with the background color of the UIAccessoryView. It does not change. Can anyone help me make the background color of the UIAccessoryView transparent (or actually any…
simonbs
  • 7,932
  • 13
  • 69
  • 115
13
votes
3 answers

How to add label text to DetailDisclosureButton?

I'm working in a iOS Swift 2.0 application. I can't figure out for the life of me on how to set the text on the right side of a UITableViewCell just before the disclosure indicator chevron (besides creating a custom cell.accessoryView). Here is a…
ded
  • 1,330
  • 1
  • 12
  • 21
9
votes
2 answers

How can you create an accessoryInputView in a Storyboard design?

I am trying to create an accessoryInputView to augment the keyboard with some app-specific keys. I am using a Storyboard based design approach to keep the the UI separated from the application logic. I cannot seem to understand how to create the…
Charlie
  • 310
  • 2
  • 14
8
votes
5 answers

UITableViewCell accessoryView not displaying

Im totally unsure why my accessory view is not working. I simply want some text to appear to the right of the UITableViewCell (as well as the left), but only the text on the left is displaying. - (UITableViewCell *)tableView:(UITableView *)tableView…
Andy A
  • 4,191
  • 7
  • 38
  • 56
7
votes
2 answers

How to set Accessoryview to static UITableViewCell?

I have created a UITableViewController with a UITableView and static UITableViewCells. How can I change the Accessory View to a custom Image within a UIImageView? I know how to change the Accessory View generally: UIImage *accessor = [UIImage…
Dennis
  • 362
  • 4
  • 13
5
votes
0 answers

UITableViewCell accessoryView removing right margin

It seems when adding creating a custom accessoryView on UITableViewCell, iOS adds a default right margin of 15px on iPhone and 20px on iPad. We are trying to put a UIButton in the accessory view so this margin is not wanted. Here's a really simple…
justbaum30
  • 505
  • 2
  • 8
  • 16
4
votes
1 answer

UITableViewCell: Accessory View going away when selected

I might be going about this all wrong, so hopefully someone will tell me what I should be doing. I have constructed a table view to act as a legend and color picker. In the AccessoryView slot, I places a custom view that is just a colored box. …
CrystalBlue
  • 1,793
  • 5
  • 18
  • 27
4
votes
3 answers

iPhone - Adding a button to keyboard existing accessory view (keyboard from UIWebView)

I'm searching a way to add a button into the accessory view of a keyboard, the one that comes up when touching an input field into a UIWebView, without using some private functions or some questionable tricks. Do you know how I may do this ? Note :…
Oliver
  • 23,072
  • 33
  • 138
  • 230
4
votes
2 answers

Custom Accessory Button in UITableViewCell

I am trying to add a custom button in the Accessory View for a UITableViewCell. I have added the following code: func tableView(_ tableView: UITableView, cellForRowAt indexPath: IndexPath) -> UITableViewCell { // .... let…
Richa Netto
  • 305
  • 2
  • 4
  • 8
4
votes
2 answers

iOS UITest : How to find UITableViewCell's AccessoryView?

Hello I'm learning UITests now I have a question how can detect accessoryView's tap on the tableViewCell?? in UITest below is my tableViewCell I want detect detail closure accesorry view's tap like this…
Cruz
  • 2,602
  • 19
  • 29
4
votes
3 answers

Tap on Cell Accessory

I have a UITableView with custom cells. Usually when the user taps the cell, it triggers this function: func tableView(tableView: UITableView, didSelectRowAtIndexPath indexPath: NSIndexPath) { //Segue to another view } If in that view they…
Dave G
  • 12,042
  • 7
  • 57
  • 83
1
2 3
9 10