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
1 answer

tableView.contentInset broken on iOS 7

Setting the contentInset on a UITableView doesn't seem to work on iOS 7: self.tableView.contentInset = UIEdgeInsetsMake(0, 0, 100, 0); // Works on iOS 6, nothing happens on iOS 7 I've tried setting self.automaticallyAdjustsScrollViewInsets to NO…
nathan
  • 1,456
  • 1
  • 15
  • 32
13
votes
4 answers

How to get a UITableViewCell from one of its subviews

I have a UITableView with a UITextField in each of the UITableViewCells. I have a method in my ViewController which handles the "Did End On Exit" event for the text field of each cell and what I want to be able to do is update my model data with the…
mluisbrown
  • 14,448
  • 7
  • 58
  • 86
13
votes
3 answers

UITableViewCell custom edit view

I am trying to replace the default editing mode behaviour of the cells. I dont want the red circle with line left accessory view to appear. Upon entering edit mode I need it to shift the content view left & display my delete button. What I have so…
Ryan
  • 865
  • 2
  • 10
  • 17
13
votes
8 answers

UITableView bounce bottom edge only

Is it possible to bounce a UITableView on the bottom side, but not the top? If so, please show me code.
Jasper Blues
  • 28,258
  • 22
  • 102
  • 185
13
votes
7 answers

"Attempt to insert row 0 into section 0, but there are only 0 rows in section 0 after the update" Error

I have an app that is selecting a person from their contacts list and takes their First name, last name and email. It then saves the first name to a nsmutablearray and puts it into a uitableview cell. My problem occurs once the contact is selected…
Dan Grueneberg
  • 215
  • 1
  • 4
  • 9
13
votes
4 answers

SDWebImage does not load remote images until scroll

I am using SDWebImage library to load remote images into a table view which uses a custom cell class i have created. I simply use [cell.imageView setImageWithURL:url placeholderImage:[UIImage imageNamed:@"loading.jpg"]]; in…
user2082760
  • 499
  • 2
  • 5
  • 14
13
votes
13 answers

Change color of alternate row in UITableView for iPhone SDK

In my app, I want to display multi-column tableView in iPad. So, I used a cocoa control from :MultiColumn TableView it works fine for me, But I want to display the rows in alternate color. For this, I am not able to find where I change the code for…
user1673099
  • 3,293
  • 7
  • 26
  • 57
13
votes
8 answers

How to reload Navigation bar

In UITableView I configure self.navigationItem.leftBarButtonItem with a button. Now I want to reload this button to update text on this button, but it's on Navigation bar. I can update UITableView by [self.tableView reloadData] but How to update…
Yuwen Yan
  • 4,777
  • 10
  • 33
  • 63
13
votes
8 answers

increase uitableviewcell height simultaneously increasing the inner UITextView

I create a UITableView with different types of UITableViewCell depending on the type of content to display. One of this is a UITableViewCell with inside an UITextView programmatically created in this way: - (UITableViewCell *)tableView:(UITableView…
LuckyStarr
  • 1,468
  • 2
  • 26
  • 39
13
votes
3 answers

Using custom sections with NSFetchedResultsController?

I'm making a sectioned table with fetched results, but am having a hard time getting custom sections worked out. Normally one would just have an attribute to sort by, and use sectionNameKeyPath: to generate the sections. But my sorting attribute is…
Triz
  • 757
  • 2
  • 10
  • 19
13
votes
7 answers

Passing vertical scrolling gesture to UITableView below

(edited for clarity) I have a UITableView. On top of that is a UIView with a Pan gesture attached. This Pan swipes left and right to change the underlying table. I use the pan gesture's action method to move the table. That working fine. However,…
cannyboy
  • 24,180
  • 40
  • 146
  • 252
13
votes
4 answers

UITableView section header on right instead of default on left

I am working on an app where it is required that the Header of section should be on right instead of the default left. I searched and many geeks suggested to implement: - (UIView *)tableView:(UITableView *)tableView…
Abdullah Umer
  • 4,234
  • 5
  • 36
  • 65
13
votes
4 answers

custom uitableviewcell content not animated when hiding delete button

I want to know what I am missing as my cell does not animate when hiding the delete button. The label jumps back to the original position before the delete button finish animating. When I tap the round editing view to show the delete button, the…
Desmond
  • 5,001
  • 14
  • 56
  • 115
13
votes
3 answers

Is it possible to add observer to tableView.contentOffset?

I need to track tableView.contentOffset.y Is it possible to add observer to tableView.contentOffset? I think this is impossible because contentOffset doesn't inherit NSObject class. Is any other solution?
Voloda2
  • 12,359
  • 18
  • 80
  • 130
13
votes
4 answers

Removing text shadow in UITableViewCell when it's selected

I've added a text shadow to cells in my UITableView to give them an etched look: cell.textLabel.textColor = [UIColor colorWithWhite:0.2 alpha:1.000]; cell.textLabel.shadowColor = [UIColor whiteColor]; cell.textLabel.shadowOffset = CGSizeMake(0,…
Chu Yeow
  • 977
  • 1
  • 9
  • 16
1 2 3
99
100