Questions tagged [uitableview]

UITableView is a class used for displaying and editing lists of information on iOS. A table view displays items in a single column. UITableView is a subclass of UIScrollView, which allows users to scroll through the table, although UITableView allows vertical scrolling only.

UITableView is a class used for displaying and editing hierarchical lists on iOS () and watchOS (). It uses an efficient architecture that reuses existing UITableViewCell objects while they scroll offscreen, improving memory usage and performance during fast scrolling.

Sample of Use

Sample of Use

Resources:

64456 questions
13
votes
3 answers

i get an error when trying to build a tableView in swift for iphone

HI I watch many tutorials to finally create an app for the app store.Recently I got interested by tableViews so I followed many tutorials and I seem to always get an error whereas the people in the tutorial succeed to build their app . When I try to…
Vassili Imanov
  • 149
  • 1
  • 1
  • 4
13
votes
7 answers

Prevent voice over (Accessibility) from announcing UITableViewCell as selected

When a UITableViewCell is selected, voice over announces "selected", I don't want voice over to say "selected". How can i achieve this ? Things I have tried with no success: Changed the cell accessibilityHint and accessibilityLabel Changed the cell…
user1046037
  • 16,755
  • 12
  • 92
  • 138
13
votes
1 answer

uitablviewcell dynamic height is not correct from systemLayoutSizeFittingSize

I am using xib & auto layout to construct my custom cell,in my cell ,there is a multi line label. an in the tableview's heightForRowAtIndexPath, i will use 1 dequeueReusableCellWithIdentifier to get a cell 2 then call [cell.contentView…
ximmyxiao
  • 2,622
  • 3
  • 20
  • 35
13
votes
2 answers

Forward vertical scrolls from UIScrollView to a sibling UITableView

I have a view controller with this hierarchy: View Controller: UIScrollView (scrollable horizontally) UITableView (scrollable vertically) I want to forward the vertical scrolls from my UIScrollView to the sibling UITableView, so that when the…
Enrico Susatyo
  • 19,372
  • 18
  • 95
  • 156
13
votes
3 answers

UITableView - how do I close row actions?

I've implemented tableView:editActionsForRowAtIndexPath:. In response to some of these actions, i want to snap the row action area back closed. There doesn't seem to be an appropriate method on UITableViewRowAction. I've tried endEditing on both the…
Steven Fisher
  • 44,462
  • 20
  • 138
  • 192
13
votes
1 answer

"This NSLayoutConstraint is being configured with a constant that exceeds internal limits"

While trying to debug an AutoLayout problem (a table cell which should be growing according to the size of its content isn't, in some circumstances), I set a breakpoint on the last line of my tableView:heightForRow: method, and trying to print the…
Robert Atkins
  • 23,528
  • 15
  • 68
  • 97
13
votes
2 answers

Populate table view in swift

Hi i want to populate this tableview i don't use the static table view because i take an error, and i decide to use the dynamic table view and disable the scroll in the table. The table view is use only for the information : @IBOutlet var…
Andrea485
  • 527
  • 2
  • 6
  • 16
13
votes
5 answers

iOS UITableView Scroll to bottom of section

I am going to make a tableview with 2 sections inside it. I can add cells to every section programmatically and when i add, i scroll to the end of tableview using [_tableView setContentOffset:CGPointMake(0, CGFLOAT_MAX)]; My question is how can i…
Mostafa A. Khattab
  • 167
  • 1
  • 1
  • 8
13
votes
2 answers

textLabel.backgroundColor on UITableViewCell does not work

I'm trying to set the label backgroundColor of my UITableViewCells and it does absolutely nothing at all. I wonder if there's another way of doing this, so I'm asking! I tried this: cell.textLabel.backgroundColor = [UIColor…
Tommy B.
  • 3,591
  • 14
  • 61
  • 105
13
votes
3 answers

What is UITableView separatorEffect property for?

New in iOS 8 is a separatorEffect property, to which you are allowed to assign a UIVisualEffect. Has anyone figured out what this is for? I've tried it and I don't see it as having any, uh, visual effect.
matt
  • 515,959
  • 87
  • 875
  • 1,141
13
votes
3 answers

UITableViewCellAccessoryType Change checkmark colour

I am trying to figure out how to programmatically(not in storyboard) set the colour for UITableViewCellAccessoryType.Checkmark. I feel kinda stupid asking how to do something as simple as this, but I could not find the answer in the apple docs. Any…
the_pantless_coder
  • 2,297
  • 1
  • 17
  • 30
13
votes
5 answers

Something is wrong with the iPhone 6 Plus tableView.separatorInset

Something is up with our table view cell separators on the iPhone 6 Plus. I created a blank test project with a custom cell with only one label and a 15pt constraint to the leading edge. iPhone 5S Label and separator are 30 px (15pt) from the…
Maciej Swic
  • 11,139
  • 8
  • 52
  • 68
13
votes
3 answers

UITableViewCell with AutoLayout - contentView width constraint failure

I'm having problems with a dynamically-sized tableViewCell in iOS 8. While it visually looks fine, I get log output with AutoLayout errors. I've reduced it down to this simple example. I'm adding a UILabel to my cell: self.titleLabel = [[UILabel…
blork
  • 2,150
  • 6
  • 26
  • 45
13
votes
2 answers

UITableView "Content" field not appearing in XIB file (Xcode 5 & 6)

I'm having a weird issue that I'm really not sure what to do about. The problem is simple: In one Xcode project (both in Xcode 5 and Xcode 6 Beta 4), I see "Content" and "Prototype Cells" when I click on a UITableView in a storyboard file: However,…
rebello95
  • 8,486
  • 5
  • 44
  • 65
13
votes
2 answers

iOS 8 Xcode6 heightForRowAtIndexPath called extra times

I just downloaded Xcode6 Beta6 and found some strange defects in my App. After some initial debugging, I have found that heightForRowAtIndexPath is called numerous extra times and is causing some ill effects. Normally, I would expect…
bmjohns
  • 6,344
  • 1
  • 33
  • 39