Questions tagged [uiaccessoryview]

UIAccessoryView is an interface component used with UITableViews to display extra information and editing options to users.

UIAccessoryView is an interface component used with s to display extra information and editing options to users. TableView accessories are displayed inside of s and come in a variety of styles including:

  • Checkmark
  • Disclosure Arrow
  • Detail Disclosure Arrow
  • Delete Button

Documentation on Accessory Views can be found in Apple's developer documentation.

15 questions
27
votes
2 answers

What's the difference between a Detail Disclosure Button and a Disclosure Indicator?

What's the difference between a Detail Disclosure Button and a Disclosure Indicator? For me, both things are the exact same thing, just that they look a little bit different. The first is a blue round button with an chevron to the right. The second…
dontWatchMyProfile
  • 45,440
  • 50
  • 177
  • 260
16
votes
4 answers

Detect when both the master and detail view controller are on screen?

I have implemented a UISplitViewController using a Universal Storyboard in Xcode 6. UISplitViewController is supported on iPhone running iOS 8 now, and by default only one view controller will be on screen at a time. I need to know when both the…
Jordan H
  • 52,571
  • 37
  • 201
  • 351
5
votes
1 answer

accessoryButtonTappedForRowWithIndexPath not working for custom button or label

override func tableView(tableView: UITableView, cellForRowAtIndexPath indexPath: NSIndexPath) -> UITableViewCell { let key = keyArray[indexPath.section-1] let label = UILabel(frame: CGRectMake(0, 0, 26, 28)) label.center =…
Arti
  • 7,356
  • 12
  • 57
  • 122
4
votes
5 answers

Wrong Background Color in Accessory View on iOS7

I have a UITableView and I have set my cell background color to RGB 244, 240, 246. I've done this by setting the background color on the table, table cell, and the content view in the table cell. However, the accessory (in this case the checkmark)…
kinadian
  • 238
  • 1
  • 3
  • 11
2
votes
1 answer

How can I show UIAccessoryView on a cell with UITableViewCellEditingStyleInsert?

I want to use an accessorydisclosureindicator to inform the user to tap on the cell in order to change the time. I did set the accessoryType to UITableViewCellAccessoryDisclosureIndicator in the cellForRowAtIndexPath delegate method but the…
Pieter
  • 1,751
  • 3
  • 30
  • 65
1
vote
0 answers

How to ignore taps on Accessories using modern UICollectionViewListCell + UIListContentConfiguration

I want to ignore all taps on cell’s accessory views. The cells of my collection view are plain cells from type UICollectionViewListCell (no subclass). I am using UIListContentConfiguration and update the cell’s data within…
1
vote
1 answer

iOS Wrong disclosure background in UITableViewCell on iPad with iOS9

I have similar issue like I described here. And again I cannot find another hidden setting. I used disclosure indicator for my table view cell. And working on iPhones/iPads with iOS 10+, iPhone with iOS 9 it looks fine, but not on iPad with iOS 9. I…
DJ-Glock
  • 1,277
  • 2
  • 12
  • 39
0
votes
0 answers

UITableView with Checkmark and Custom Accessory Button

I am implementing a UITableView with a checkmark on the left of the label and a custom accessoryView with a button on the right side. The checkmarks are selected and deselected in didSelectRowAt(indexPath). The custom button for the accessoryView…
Richa Netto
  • 305
  • 2
  • 4
  • 8
0
votes
2 answers

How to save checkMark status for specific UITableViewCell

I have a UITableView in one UIViewController, and I try to store the status of the accessoryType so that when the user reload the app, the cells user selected beforehand using NSUserDefault should display with a checkmark. But the problem I am…
Martin.Zeng
  • 63
  • 1
  • 4
0
votes
1 answer

Setting a Button with an image in the AccessoryView

I would like to customize the image in the accessory views of some tables while allowing to pass the table and indexPath to the accessoryButtonTappedForRowWithIndexPath callback including the clicked table. I used to employ the UIControl+Blocks.h…
Fabrizio Bartolomucci
  • 4,948
  • 8
  • 43
  • 75
0
votes
2 answers

UITableviewCell accessoryView can't be changed

I need to change the accessoryView to proper UIImageView func tableView(tableView: UITableView, cellForRowAtIndexPath indexPath: NSIndexPath) -> UITableViewCell { var cell = tableView .dequeueReusableCellWithIdentifier("ActivitySectionCell")…
Paul T.
  • 4,938
  • 7
  • 45
  • 93
0
votes
1 answer

Distinguishing taps on UITableViewCell in general from taps on its accessory button in particular

I would like to implement a UITableViewController that works in a similar fashion to the Episodes (under the My Podcasts) view in the iOS 7 Podcasts app in that its cells should perform one segue if I tap on the (left part of the) cell and perform…
Drux
  • 11,992
  • 13
  • 66
  • 116
0
votes
2 answers

Access text from UILabel that is set as AccessoryView to a UITableView

A UITableView uses a UILabel as its Accessory View. By using the following code, I am able to retrieve the UILabel but i cant figure how to access the text alone: NSLog(@"text label: %@",[[self.frequencyTableView cellForRowAtIndexPath:[NSIndexPath…
motox
  • 759
  • 10
  • 17
0
votes
1 answer

Allow only one UITableViewCell to be Checked in a section

I'm trying to allow only one UITableViewCell to be checked at a time in a section. What I'm going for is to uncheck a checked UITableViewCell (if there is one) and checking the current selected cell. So basically, If one CellA is selected, and I…
0
votes
2 answers

Custom UITableViewCell using UIAppearance proxy

I would like to set a custom image for all the UITableViewCell accessory view in my app. I've tried using this code: [[UITableViewCell appearance] setAccessoryView:[[UIImageView alloc] initWithImage:[UIImage imageNamed:@"table-arrow.png"]]]; but it…
Claus
  • 5,662
  • 10
  • 77
  • 118