uitableview

UITableViewCells not highlighting on touch

I'm subclassing UITableViewCell and adding two subviews (image, UILabel). When the row is touched. There's no cell highlighting indicating the cell was selected. I'm pretty sure I missed something, not sure how to handle highlighting for subclassed cell. Any help would be appreciated. Thanks. ...

iPhone - Multiple TableViews in one View?

How exactly does one implement two separate "tableviews" on one view like in this image: ...

Selecting one UITableView deletion control ("-" button) deselects others. How can I select more than one?

I have an iPhone app that uses a UITableView with the UITableViewDelegate/UITableViewDataSource protocols. I'm struggling to do multi-select for deletion (not checkboxes, just the standard "-" delete button). The basic problem is that when I click "edit," put the table view into edit mode, and then start clicking "-" buttons, I can onl...

Programmatically set UITableView datasource and delegate

I have a UIScrollView that contains multiple UITableViews horizontally - all of which are created programmatically depending on the user's action. Say I have 4 UITableViews, how do I set the datasource and delegate for each one programmatically? I understand there are tableViewX.dataSource and tableViewY.delegate methods; and I assume I...

iPhone + UITableView with multiple columns

Hi, I want to display a UITableView with Multiple Columns. The first column will have some text and another column will have a button, click of button will navigate to some another view. ...

vertical text alignment for UITableViewCellStyleValue2

Hello all , i want align uitextalignment top in my uitableviewcell for style = UITableViewCellStyleValue2.. Can any one tell how ? ...

Preventing Display of UITableView header

One of the screens in my iPhone app is a UITableView that has a search bar in the table header. I want the search bar to be hidden until the user pulls it down, so I use this line in my viewDidLoad method: [self.tableView setContentOffset:CGPointMake(0,40) animated:NO]; This correctly displays the tableView with the header scrolled of...

iPhone: Custom DataGrid View, Subclass UITableView, or other?

I would like to create a data grid that scrolls both vertically and horizontally and has sticky row and column headers (so you can scroll the data while still viewing the row/column headers). What is the best way of doing this? I've considered creating my own custom DataGrid view that handles its own rendering, but this seems like a lot...

Can I force a UITableView to hide the separator between empty cells?

When using a plain-style UITableView with a large enough number of cells that the table view cannot display them all without scrolling, no separators appear in the empty space below the cells. If I have only a few cells the empty space below them includes separators. Is there a way that I can force a UITableView to remove the separators...

iPhone: UITableView leaking like Titanic!

This is the code of my cellForRowAtIndexPath of my UITableView - (UITableViewCell *)tableView:(UITableView *)tableView cellForRowAtIndexPath:(NSIndexPath *)indexPath { static NSString *identificadorNormal = @"Normal"; UITableViewCell *cell; cell = [tableView dequeueReusableCellWithIdentifier:identificadorNo...

UITableView problem with "Inset" property

My navigation-based-app's background looks like a paper on a cork bulletin board. My RootViewController is, of course, an UITableView. I want to have the TableView end on the paper and not on the cork. Some pictures here to explain it better: This is how it looks when I scroll to the last row of the TableView. For this, I'm using the ...

iPhone Pull Down Refresh like Tweetie

I am trying to find an example of placing an element above the Table View outside the normal scrollable region. How would I do this? An example would be what the Tweetie 2 app for the iPhone does to refresh tweets. Sample code would be extremely helpful. ...

iPhone + UITableView + row height problem

Hi, I am setting the row height of my UITableView using following code [tableView setRowHeight: 100.00]; I am using the single line as separator in the UITableView. Eventhough setting the height above, height of row does not get change. Please help me ...

iPhone UITableView PlainStyle with custom background image - done "entirely" in code.

Hi I have been all over the place, seems the UITableView with a static background issue is well documented, but no one with a straight forward solution? Im building my TableViews entirely in code, like this: UIViewController *tableViewController = [[TableViewController alloc] init]; navigationController = [[UINavigationController a...

Recognize regular taps in table view on iPhone

Hello, I have a table view with custom cells and I recognize swipes in that cells. That works just fine but I'd like the table view to behave normally. When I tap the wherever on the table view I'd like cell to get selected and perform action tableView:didSelectRowAtIndexPath: Any tips or ideas? Thanks. ...

How can I maintain display order in UITableView using Core Data?

Hi All, I'm having some trouble getting my Core Data entities to play nice and order when using an UITableView. I've been through a number of tutorials and other questions here on StackOverflow, but there doesn't seem to be a clear or elegant way to do this - I'm really hoping I'm missing something. I have a single Core Data entity tha...

Passing an NSDictionary to a ViewController from AppDelegate

This is related to a question I asked earlier, but the original question was answered. Hope it's okay to open a new question, if not, feel free to delete it. I'm trying to build a simple iPhone application using tableviews and a tabbar. Every view is the same programmatically, except for the title and the kind of data which needs to be ...

How do I make a UINavigationBar respond to taps?

I have a tableViewController/navController setup. I want to tap on the navbar of the navController to force the tableView back to the top row. I can see that the navbar is a UIView subclass, but I am unclear if I need to subclass it and implement the touch sequence methods. I've build the view hierarchy in IB so I am reluctant to build ...

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 ...

How can I filter an array based on the objects in another array in Objective-C?

I have an array of objects in a tableView. I want the user to be able to go to another page and select from a checklist of objects to filter the first array. How should I handle the data from the checklist? I am currently handling it as an NSMutableArray of selected objects. But then how do I filter the first array with the contents of ...