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
2 answers

UITableView tap and hold + drag and drop

I wanted to find out how to do the following: I have a UItableView, which enters edit mode when the user taps and holds one of the rows Once it enters edit mode I need the cell to remain selected and give the effect of popping out, under the users…
kukushkin
  • 209
  • 1
  • 3
  • 6
13
votes
3 answers

Does dequeueReusableCellWithIdentifier: call an initializer in my UITableViewCell subclass?

I have a UITableViewController subclass with its prototype cells mocked up in the storyboard. There's a fair amount of code in the cellForRowAtIndexPath delegate method that sets up the cells. Problem is I don't need most of it if the cell is just…
birarduh
  • 762
  • 8
  • 19
13
votes
3 answers

CoreGraphics - Blending only *part* of a view

I recently came across this brilliant article about improving scroll performance with UITableViewCells: http://engineering.twitter.com/2012/02/simple-strategies-for-smooth-animation.html -- While many great tips can be found in this article, there…
nrj
  • 1,701
  • 2
  • 22
  • 37
13
votes
4 answers

Custom CellIdentifier is Null When Using Search Display Controller

In my tableview have custom cells that I initialize from a UITableViewCell class. I have sections for first letters of records and have an indexPath that is being created dynamically. I wanted to add a search display controller to my tableview. So…
kubilay
  • 5,047
  • 7
  • 48
  • 66
13
votes
3 answers

iOS5 Storyboard: Reuse Custom UITableViewCell in multiple UITableViewControllers

Using a dynamic, custom cell prototype that I design in, say, UITableViewController A (in Interface Builder/Storyboard), works really well with dequeuing the cell (through its identifier, cellA) and such in cellForRow... I use a custom class…
James Stone
  • 487
  • 7
  • 16
12
votes
3 answers

Animate the insertion of a new section in UITableVIew

I have this button on my view, and when I press it I insert a new section in my table view ( I have a logical condition in my -(NSInteger) numberOfSectionsInTableView:(UITableView*)tableView { if (slide==TRUE) return 2; return 1; } And…
Cosmin
  • 2,840
  • 5
  • 32
  • 50
12
votes
4 answers

Adding cells programmatically to UITableView

I've just recently started programming for the iPhone and I'm making an application that connects to a database and gets a set of row names and displays them. When selected, the rows background colour change ie you can make multiple selections and…
KerrM
  • 5,139
  • 3
  • 35
  • 60
12
votes
4 answers

Is there a way to force a refresh of just a single header in UITableView?

I have a UITableView where I want to force a refresh of just a specific section header row, not the data rows. For example, refresh the header for section 3. I know how to reload an entire section (header plus data), but can just the section header…
ChrisP
  • 9,796
  • 21
  • 77
  • 121
12
votes
1 answer

didSelectRowAtIndexPath event not triggered when select row programmatically

I would like to select a cell in a tableView. It is working properly using this code, but once selected programmatically it does not trigger a didSelectRowAtIndexPath event. How can I trigger it? NSIndexPath *indexPath = [NSIndexPath…
Jaume
  • 913
  • 2
  • 17
  • 31
12
votes
2 answers

UITableView reorder hides background

I have a UITableView that implements the reorder controls. It all works great with the exception of one thing. When I drag the cell, all UIView subviews are hidden. Is there a way to prevent that from happening? I tried to add a UIImage for the…
Buyin Brian
  • 2,781
  • 2
  • 28
  • 48
12
votes
1 answer

CoreData error driving me crazy... CoreData: Serious application error. An exception caught from delegate of NSFetchedResultsController

My application has two tab bars... Each takes the user to a tableviewcontroller that presents him with a list of items. The first view lets the user record entries in the database. The other tab/view reads from the database and presents those…
12
votes
4 answers

Auto-Resize UITableView Headers on Rotate (Mostly on iPad)

I feel like this is going to be a simple answer revolving around AutoResizingMasks, but I can't seem to wrap my head around this topic. I've got an iPad app that shows 2 UITableViews side-by-side. When I rotate from Portrait to Landscape and back,…
mbm29414
  • 11,558
  • 6
  • 56
  • 87
12
votes
4 answers

adding KVO to UITableViewCell

I have a custom UITableViewCell which is displaying various attributes of a Person object (backed by Core Data) ... some labels, images etc. I currently force the whole tableview to reload whenever any property changes, and that's obviously not…
Z S
  • 7,039
  • 12
  • 53
  • 105
12
votes
2 answers

Showing the searchbar only when user pull down the table

I have a table view with a search bar on top of it. My requirement is to do not show the search bar when someone open the page but when someone slides the table down then the search bar should be visible.
Abhinav
  • 37,684
  • 43
  • 191
  • 309
12
votes
3 answers

Assert UITableView internal inconsistency prefetchedCells and indexPathsForPrefetchedCells are out of sync

Using UITableView with a custom cell. This was working fine till using iOS SDK 14. When start using iOS sdk 15, UITableView gives error upon scrolling. Error is "Assert UITableView internal inconsistency prefetchedCells and…
kapill
  • 189
  • 9
1 2 3
99
100