uitableview

TableView not populating until I scroll past the cell when height of cell is changed

What I've done is created a custom TableCell view that gets populated with information from an array of objects. Each TableCell gets loaded in the - (UITableViewCell *)tableView:(UITableView *)tableView cellForRowAtIndexPath:(NSIndexPath *)indexPath { static NSString *CellIdentifier = @"CellIdentifier"; Cell *cell = (Cell *...

UITableView create cell in code - reload table returning old cells

I'm not sure if this is the correct way to create a UITableViewCell in code, but it works perfectly, until I need to reload the table as its returning old cells so not loading the new content. - (UITableViewCell *)tableView:(UITableView *)tableViewData cellForRowAtIndexPath:(NSIndexPath *)indexPath { static NSString *CellIdentifier = @"...

Recommendation for editing/deleting section

Apple's documentation on UITableView discusses how to add/edit/delete rows, but it doesn't discuss adding/editing/deleting sections is detail, specially with respect to the UI. In case of add/delete rows, you can apply "add" and "delete" styles on the row using: - (UITableViewCellEditingStyle)tableView:(UITableView *)tableView editingS...

changing labels in uitableview .

Hi all, I am using table view for editing an object . I am using below code to construct a uitableview cell. It is working nicely but somehow while scrolling the cells changing internally . static NSString *CellIdentifier2 = @"CustomCell Editable Identifier"; cell = [theTableView dequeueReusableCellWithIdentifier:CellIdenti...

Anchor in a UITableView

Hi, I have a UITableView which has some dates on it. I would like to go directy to a specific entry (i.e. "today's date") in my tableview when I open it. That means I want to have the past dates already scrolled down and the first line I see is the one with today's date. How can I do that? Thanks, Laurent ...

NSFetchedResultsController and UITableView Sections

I use an NSFetchedResultsController to populate a UITableView, and would like to know if it is possible to create different sections based on an attribute of my data model. I am displaying a table of objects, and one of the properties of the objects is a BOOL that is set to indicate whether or not the object is active. I would like to ...

UITableView not working. Why?

I have a UITableViewController and I have specified the index titles so that the user can skip to specific letters much like the iPod app (the song list, specifically) on an iPhone. I have set up everything and implemented all the methods in the UITableViewProtocol. Now, here is the problem. When I click an index on the right side (they...

Cached UIImages fetching performance in UITableView

I've been using @atebits's ABTableViewCell for a while. For those who are unfamiliar with it, basically it makes tableview scrolling much faster by drawing all the labels and images, instead of allocating UIKit objects (such as UILabels, UIImageView, etc). Now, I have pretty big UITableViews and in each cell, there's a small (32x32) use...

Fully populating UITableView Index from NSFetchedResultsController

I have a UITableView that I've set up by following Apple's various Core Data examples. Everything works fine with this view, however, the index on the right hand side only has letters for sections that are actually in the table. I'd like to have all the letters filled in, and if the user taps on a letter that doesn't have a section, take...

UITableView not refreshing appropriately

I have a selectedArray defined as a property in my file that holds which cells have been "checked". When displaying the cell I check whether or not the current cell value is in the selectedArray, and if it is, I display the UITableViewCellAccessoryCheckmark as the table's Accessory View. The only problem is, when the user searches for t...

UITableView disappears when switching from portrait to landscape

hey there, I am creating an app that requires me to add tables in a particular page. The page should be in landscape mode but the application in portrait. I've figured out the switching i.e from portrait to landscape and back to portrait [homepage(portrait) -> tablePage (landscape)] and vice versa. The problem is the table view keeps red...

How to coalesce KVO changes?

I have a fairly simple iPhone app that downloads a set of UITableView results into its model class, and a view controller that's set up to observe these changes using KVO. This system works well (much better than scattering update code everywhere), except that when I get results, I add them to the backing NSMutableArray one-by-one. Thi...

Fastest method for rendering a table view cell?

Hi, I'm developing an application that requires me to display many short strings of text in table cells. Currently, I'm using a default table view cell with about 14 UILabels added. Half of these labels contain static text that will not be changed, while the other half contains dynamic data that has to be updated when the table is scrol...

UITableView text overlapping

Hi I am working on UITableView. I have added a table in my view programmatically and populated it with some data by adding UILable as a subview of each cell. Table has 21 rows. Problem is that when i scroll up or down, the data in the first two rows and last 2 or 3 rows is overlapped with some other row's data. For example first two bowl...

UITableView: scrolling programmatically the content view

Hi i'm trying to forward the touches I receive from an UIView which is in front of an UITableView. But doins so I can't make the table scroll anymore (see here). So now I'm trying to make tha tableview scroll programmatically and I am looking at setContentOffset:animated: and scrollRectToVisible:animated: with having success only with t...

UITabBar view / frame

Hello, I have an app that uses a UINavigationController. On one of the pages, I add a UITabBarController in my viewDidLoad method. Once I'm done initializing and configuring the UITabBarController, what is the appropriate way to make the UITabBarController's contents visible? If I use: [self.view addSubview:self.tabBarController.vie...

Retain count for tableView:cellForRowAtIndexPath:

In Apple's example code, the method tableView:cellForRowAtIndexPath: of a UITableViewDataSource returns a cell with a retain count of 1; it allocs it, but doesn't autorelease it. However, the static analyzer complains that this violates the Cocoa naming conventions, since the method name doesn't start with 'new', etc. The documentation d...

EXEC_BAD_ACCESS with cellForRowAtIndexPath, again...

Hi everyone, i've another problem with the UITableView, app crashes after reloading tableView after loading data from internet, the crash happens in marked place in cellForRowAtIndexPath methood. I thinnk i still don't fully understand what actually mean recycling cells. Thanks for any help - (UITableViewCell *)tableView:(UITableView *...

Tab bar covers UITableView's last cell

I'm developing an application based on the Tab Bar application preset. In one of the tabs I have a table view showing a lot of data, but half the last cell in the table view is covered by the tab bar when I've scrolled to the bottom. Anyone has a solution to this? ...

Delete a cell from UITableView programatically.

I have a UITableView, when a cell is taped i want to delete it automatically (no editing mode). When it is tapped i can delete that object/data in the dataSource, but then how can i update the TableView, or refresh it so it so it shows the data in the dataSource after i change that data. Thanks very much for any ideas:) ...