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
97
votes
9 answers

delete lines between UITableViewCells in UITableView

I've created an UITableView with UITableViewCell. Between the view cells there are grew lines. I want to delete these lines and don't want to show them, but I don't know how. I work with Xcode 6.1 and Swift. Here is a screenshot that displays my…
GRme
  • 2,707
  • 5
  • 26
  • 49
97
votes
18 answers

How can I set a UITableView to grouped style

I have a UITableViewController subclass with sections. The sections are showing with the default style (no rounded corners). How can I set the TableView style to grouped in the code? I'm not using Interface Builder for this, so I need something…
nevan king
  • 112,709
  • 45
  • 203
  • 241
96
votes
19 answers

✔ Checkmark selected row in UITableViewCell

I am an iOS development newbie. I want to add a checkmark to my UITableViewCell when it is selected. The checkmark should be removed when another row is selected. How would I do this?
Suchi
  • 9,989
  • 23
  • 68
  • 112
95
votes
6 answers

UITableView example for Swift

I've been working with Swift and iOS for a number of months now. I am familiar with many of the ways things are done but I'm not good enough that I can just write things up without looking. I've appreciated Stack Overflow in the past for providing…
Suragch
  • 484,302
  • 314
  • 1,365
  • 1,393
94
votes
3 answers

Appending NSDictionary to other NSDictionary

I have one NSDictionary and it loads up UITableView. If a user scrolls more and more, I call API and pull new data. This data is again in the form of an NSDictionary. Is it possible to add the new NSDictionary to the existing one?
slonkar
  • 4,055
  • 8
  • 39
  • 63
94
votes
9 answers

How do I make a UITableViewCell appear disabled?

I know about UITableview: How to Disable Selection for Some Rows but Not Others and cell.selectionStyle = UITableViewCellSelectionStyleNone, but how do I make a cell (or any UIView for that matter) appear disabled (grayed-out) like below?
ma11hew28
  • 121,420
  • 116
  • 450
  • 651
94
votes
26 answers

Dynamic Height Issue for UITableView Cells (Swift)

Text data of variable length are being injected into tableview cell labels. In order for each cell height to be properly sized, I have implemented in viewDidLoad(): self.tableView.estimatedRowHeight = 88.0 self.tableView.rowHeight =…
simplexity
  • 1,527
  • 1
  • 13
  • 31
94
votes
11 answers

How to change height of grouped UITableView header?

I know how to change the height of the section headers in the table view. But I am unable to find any solution to change the default spacing before the first section. Right now I have this code: - (CGFloat)tableView:(UITableView *)tableView…
circuitlego
  • 3,469
  • 5
  • 22
  • 22
92
votes
21 answers

UITableView clear background

I realize that iOS 7 has not officially been released and we should not discuss it BUT I am going crazy trying to figure out this problem. On iOS 6, my table view was transparent and looked great. First time running iOS 7, and the background is…
Teddy13
  • 3,824
  • 11
  • 42
  • 69
90
votes
16 answers

Loading a Reusable UITableViewCell from a Nib

I am able to design custom UITableViewCells and load them just fine using the technique described in the thread found at http://forums.macrumors.com/showthread.php?t=545061. However, using that method no longer allows you to init the cell with a…
Greg Martin
  • 5,074
  • 3
  • 34
  • 35
90
votes
15 answers

How to Make the scroll of a TableView inside ScrollView behave naturally

I need to do this app that has a weird configuration. As shown in the next image, the main view is a UIScrollView. Then inside it should have a UIPageView, and each page of the PageView should have a UITableView. I've done all this so far. But my…
89
votes
9 answers

Extra padding above table view headers in iOS 15

How to change the extra padding above UITableView section headers that has started to appear in iOS 15?
Jakub Truhlář
  • 20,070
  • 9
  • 74
  • 84
89
votes
5 answers

Tricks for improving iPhone UITableView scrolling performance?

I have a uitableview that loads fairly large images in each cell and the cell heights vary depending on the size of the image. Scrolling performance is decent, but can sometimes be jerky. I found these tips I found on the FieryRobot…
Jonah
  • 4,810
  • 14
  • 63
  • 76
89
votes
12 answers

Assertion failure in -[UITableView _endCellAnimationsWithContext:]

Hopefully this will be a quick fix. I have been trying to figure out the error that i keep getting. The error is listed below and the appdelagate is below that. Any help is appreciated. Thanks 2012-04-12 21:11:52.669 Chanda[75100:f803] ---…
Scubadivingfool
  • 1,227
  • 2
  • 10
  • 23
88
votes
12 answers

How do I set the height of tableHeaderView (UITableView) with autolayout?

I'm been smashing my head against the wall with this for last 3 or 4 hours and I can't seem to figure it out. I have a UIViewController with a full screen UITableView inside of it (there's some other stuff on the screen, which is why I can't use a…
Andrew Cross
  • 1,921
  • 2
  • 19
  • 32