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

how to set a tableview delegate

I'm trying to use a UITableView without using a nib and without using a UITableViewController. I have added a UITableView instance to a UIViewController Like So mytable = [[UITableView alloc] initWithFrame:CGRectMake(22, 207, 270, 233)]; [mytable…
dubbeat
  • 7,706
  • 18
  • 70
  • 122
13
votes
2 answers

Swift Plist Reading and Initializing Arrays as Objects for Key

I'm developing a small UITableView-based app in Swift. I started out hard-coding some basic arrays as such (included is the basic class declaration and the UITableView outlet declaration: import UIKit class ScenesViewController:…
virenabhyankar
  • 251
  • 1
  • 2
  • 9
13
votes
2 answers

UITextView doesn't update its contentSize

I'm dynamically sizing a UITextView's height and the height of the UITableViewCell it is embedded in when its content changes. But I also have the ability to paste in predefined bits of texts. As this pasting happens programmatically, the problem…
dkaisers
  • 824
  • 1
  • 8
  • 15
13
votes
5 answers

How to prevent UITableView from reserving space at the left of cell when editing is turned on?

I'm set editing mode for UITableView to have a possibility of cell reordering. UITableViewCellEditingStyleNone is returned by editingStyleForRowAtIndexPath: method for every cell, but it reserve some area on the left of cell. Is it possible to…
Yuriy Zhyromskiy
  • 149
  • 1
  • 2
  • 7
13
votes
3 answers

iPhone: didSelectRowAtIndexPath not invoked

I know this issue being mentioned before, but resolutions there didn't apply. I'm having a UINavigationController with an embedded UITableViewController set up using IB. In IB the UITableView's delegate and dataSource are both set to my derivation…
soletan
  • 431
  • 2
  • 4
  • 14
13
votes
5 answers

How to Draw a single point line in iOS

I was wondering what is the best way to draw a single point line? My goal is to draw this line in a tableViewCell to make it look just like the native cell separator. I don't want to use the native separator because i want to make in a different…
Lirik
  • 3,167
  • 1
  • 30
  • 31
13
votes
3 answers

UIRefreshControl bug when entering foreground

I've noticed a little bug (but really annoying) when I use UIRefreshControl in my View Controller. When the application returns from the background the UIRefreshControl is already loaded and it looks like this: As you can see I use a custom…
cojoj
  • 6,405
  • 4
  • 30
  • 52
13
votes
7 answers

Non US characters in section headers for a UITableView

I have added a section list for a simple Core Data iPhone app. I followed this so question to create it - How to use the first character as a section name but my list also contain items starting with characters outside A-Z, specially Å,Ä and Ö used…
epatel
  • 45,805
  • 17
  • 110
  • 144
13
votes
3 answers

UIRefreshControl is in wrong position in UITableViewController

I've seen quite a few problems with UIRefreshControl, and I'm having a problem as well with my UITableViewController. The problem occurs so randomly and henceforth I cannot figure out why or how it happens. The problem is that sometimes when you…
klcjr89
  • 5,862
  • 10
  • 58
  • 91
13
votes
5 answers

UITableViewCell skipped in responder chain

I'm attempting to trigger an event in a subview of a UITableViewCell, and let it bubble up the responder chain and be handled by a custom UITableViewCell subclass. Basically: SomeView.m (which is a subview of the UITableViewCell) [self.button…
Keith Norman
  • 505
  • 4
  • 11
13
votes
2 answers

Animation when inserting a larger row into a UITableView assuming the wrong height

I'm having a problem in animating the addition or removal of a row in a UITableView which has a different height than other rows. The following gifs demonstrats the issue with rows of the default height (44pts) and an larger row (100pts) being…
death_au
  • 1,282
  • 2
  • 20
  • 41
13
votes
2 answers

How to display scrollbar in UITableView

I want to display some kind of indication to guide user to scroll. Usually when we touch the UITableView scrollbar appears if needed. But I want this scrollbar indication already displayed on my tableview. How is it possible to do so?
Nic
  • 609
  • 4
  • 12
  • 21
13
votes
3 answers

UITableView Section Index overlapping row delete button

After quite a lot searching around Google, Stackoverflow and apples documentation, I have almost given up. I am making an app to index costumers and because of a potentially very long list, I use section index to navigate faster. My problem is shown…
Stjernegard
  • 157
  • 1
  • 7
13
votes
3 answers

Is there a way to cancel an animated UITableView/UIScrollView setContentOffset:animated:?

My app is crashing when my UITableView is released whilst animating. The app functions without issue so long as the animation completes. Below is the result of a tap on the UIButton which calls [tableView setContentOffset:offset animated:YES]; and…
13
votes
8 answers

UITableView delegate and dataSource methods not getting called

I have a UIView which contains a UITableView. The tableview's delegate is set to my UIView, but it never calls the delegate methods: -(id)init { self = [super init]; if (self) { self.tableView = [[UITableView alloc]…
Andrew
  • 15,935
  • 28
  • 121
  • 203