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
82
votes
14 answers

Circular UIImageView in UITableView without performance hit?

I have a UIImageView on each of my UITableView cells, that display a remote image (using SDWebImage). I've done some QuartzCore layer styling to the image view, as such: UIImageView *itemImageView = (UIImageView *)[cell viewWithTag:100]; …
swiftcode
  • 3,039
  • 9
  • 39
  • 64
82
votes
9 answers

iPhone UITableView. How do turn on the single letter alphabetical list like the Music App?

In the iPhone music app, selecting Artist, Songs, or Albums presents a tableView with a verticl list of single letters at the righthand side of the UI that enables rapid scrolling. How do I enable this functionality in my app? Cheers, Doug
dugla
  • 12,774
  • 26
  • 88
  • 136
82
votes
21 answers

How to remove the last border of the last cell in UITableView?

In my app, I use a UITableView My problem is that I want to remove the last border of the last cell in UITableView. Please check the following image:
user2289379
81
votes
8 answers

UITableView: hide header from empty section

i have a UITableView, that displays expenses from a current month (see screenshot): My problem is with the header for empty sections. is there any way to hide them? The data is loaded from coredata. this is the code that generates the header…
Sebastian Flückiger
  • 5,525
  • 8
  • 33
  • 69
81
votes
17 answers

How to set the height of table header in UITableView?

I have gone through Apple docs about UITableView class and delegate reference but couldn't find the way to set the table header height explicitly. I set Table cell height using following delegate: -(CGFloat)tableView:(UITableView *)tableView…
Paresh Masani
  • 7,474
  • 12
  • 73
  • 139
81
votes
14 answers

UITableView Separator line

How can I change the separator line that appears at the end of each cell in UITableView? I want to have an image that is a thin separator type line image.
81
votes
13 answers

Custom edit view in UITableViewCell while swipe left. Objective-C or Swift

How to make a custom edit view in iOS7 UITableView with Objective C like the Evernote or the Apple Reminders app while swipe left. I have tried to set an custom editingAccessoryView, but this didn't work. Evernote edit view: Reminders edit view:…
ugoarangino
  • 827
  • 1
  • 7
  • 5
81
votes
11 answers

UITableview reloaddata with animation

I have a UITableView which is populated from array and a drop down list. If I select any row of drop down list the array will be inserted with new values and tableview should get reloaded. How to animate the tableview with new array contents?…
Naveen Pathiyil
  • 826
  • 1
  • 7
  • 8
80
votes
24 answers

cellForRowAtIndexPath: not called

My app has two states: logged in and not logged in, and I have the following architecture (vastly simplified): - ViewController A which contains a search box and a table view. - ViewController B which is used for logging in the app. The flow is the…
Stelian Iancu
  • 2,462
  • 3
  • 18
  • 28
80
votes
5 answers

How to insert new cell into UITableView in Swift

I'm working on a project where I have two UITableViews and two UITextFields, when the user presses the button the data in the first textField should go into the tableView and the second go into the second tableView. My problem is that I don't know…
code Horizons
  • 841
  • 2
  • 8
  • 8
80
votes
6 answers

Jerky Scrolling After Updating UITableViewCell in place with UITableViewAutomaticDimension

I am building an app that has a feed view for user-submitted posts. This view has a UITableView with a custom UITableViewCell implementation. Inside this cell, I have another UITableView for displaying comments. The gist is something like this: Feed…
Bryan Alger
  • 831
  • 1
  • 8
  • 6
80
votes
7 answers

Assertion failure when using UISearchDisplayController in UITableViewController

I've been trying to add simple Search functionality to a TableViewController in my app. I followed Ray Wenderlich's tutorial. I have a tableView with some data, I added the search bar + display controller in storyboard, and then I have this code:…
acib708
  • 1,573
  • 1
  • 13
  • 24
79
votes
9 answers

Storyboard Segue From View Controller to Itself

I am trying to make a mechanism to drill down a file / folder list. The idea is to show the same file list view controller every time the user selects a folder, and show a file detail view controller if he/she selects a file. So far, I have created…
Jorge
  • 2,530
  • 1
  • 19
  • 28
78
votes
4 answers

How to change uitableview delete button text

Hi there I am trying to change the text that is showing in the delete button when a user swipes a uitableviewcell inside my tableview. I have seen an example in another question thread that says to use this tableview delegate - (NSString…
C.Johns
  • 10,185
  • 20
  • 102
  • 156
78
votes
18 answers

How to scroll to the exact end of the UITableView?

I have a UITableView that is populated with cells with dynamic height. I would like the table to scroll to the bottom when the view controller is pushed from view controller. I have tried with contentOffset and tableView scrollToRowAtIndexPath but…
Padmaja
  • 791
  • 1
  • 5
  • 5