uitableview

Observing pinch multi-touch gestures in a UITableView

I am looking to implement a pinch in/out on top of a UITableView, I have looked at several methods including this one: Similar question But while I can create a "UIViewTouch" object and overlay it onto my UITableView, scroll events are not being relayed to my UITableView, I can still select cells, and they respond properly by trigg...

BackgroundColor of UITableViewCellStyleSubtitle labels ??!?

I am trying to create a table with an image as a background. To achieve this, I started out with the background: self.view.backgroundColor = [UIColor groupTableViewBackgroundColor]; This resulted in a background image which appears in tablecells as well. That is not something I want, so I tried to set the cell's backgroundColor: cell...

UITableView gaps when using dynamic row height

I have a UITableView of height 400px which I want to fill with either 10 or 11 custom UITableViewCells depending on the data to be displayed. The problem is that depending on how I set the height of each row using my current method, there are gaps between cells or below the bottom cell. I assume this is due to rounding. This code puts s...

UITableView reloading data / refreshing (possible duplication issue)

I have a UITableView in an iPhone application which I am refreshing (by calling [self.tableView reloadData] in the action method for a UISegmentedControl dynamically embedded in one of the UITableView cells. The table view is refreshed to update a text value for one of the cells. However, the following code seems to produce an unwanted ...

unwanted (transparent) "border" around UITableView when (programatically) placed in UINavigationControl

Hi there. On selecting a cell in a UITableView (which itself is placed on the rootView of a UINavigationController) I push a new SubviewController (which has another TableView as its view) onto the NavigationController. It all works fine, but when it gets displayed it has a transparent Border around it (the same width on all the sides)....

Disclosure "i" button or chevron for iPhone app?

I have a UITableView with rows that each have two actions that can be performed. The user can be shown the item details screen (edit the name and see summary info) or they can 'open' the item to properly interact and play with it. At the moment the first action is achieved via a rounded-rect button with a label "i" in it, and the second ...

Passing NSMutableArray from Delegate to tableview

Hi all, i have encountered a problem when wanting to pass a NSMutableArray from the delegate to a tableview controller and then reload it's data, I need to do this because i have my socket in the delegate and when it receives data it returns a NSMutableArray which is supposed to be the data for the tableview, unfortunately it passes nil ...

How to customize UITableViewCell for string length

I have to fit strings within a table. The strings are of different lengths. The cell of the table should be sized according to string length. I am using sizeWithFont:constrainedToSize: . But I could not use it properly. Can any one please suggest a solution? ...

iPhone - Problems with UITableView - reload data & no hits

Hello! I am using this example of Apple's sample code: http://developer.apple.com/iPhone/library/samplecode/TableSearch/index.html In this example the UITableView get a list of content at startup. Clicking in the UISearchBar and typing, the content list will be filtered, also checking on scope of the ScopeBar. I have to rebuild this ...

Behaviour of a searchDisplayController.searchResultsTableView inside a UINavigationController logic

I have a ordinary UITableViewController inside a UINavigationController. The former includes a searchbar which is connected to a search display controller. I use the standard behaviour, i.e. when the user enters any character the search results table view overlays the normal table view. Now, both table views act inside a navigation cont...

Core Data error when deleting row in tableView

I have a UITableViewController managing a grouped tableView. The tableView is populated from a fetchedResultsController. If I click the Edit button in the NavigationBar, then select a row and click the Delete button, the row is deleted and all ends well. However, if I swipe to reveal the Delete button in a row and click the Delete bu...

Tap on UIImageView in the Table Cell to show larger image.

Hi All I am writing an app where I need to show the thumbnail image on each of the table cell, when this thumbnail image is taped it should push new view with larger image. So there should be two touch events on single cell, one for image and other for showing detail view. By default in the didSelectRowAtIndexPath I am invoking detail v...

Rename standard "edit" button in tableview

I managed (with lots of trial and error) to have my tableview provide only reordering functionality, i.e. my tableview is editable but does not display "delete icons" nor indents the rows upon clicking on the edit button. Now I would like the button to read "sort" instead of "edit". I naively tried this: self.navigationItem.leftBarBut...

Is there a good component for showing a text log on screen in an iPhone app?

I want to have a screen in my app that shows real-time log information - e.g. a scrolling list of textual strings. Previously I've seen people just use a textview and append new log entries to the list - it seems this may be not so efficient, especially when the list becomes long. Is there any sample code out there that can efficiently ...

iPhone - Calendar Like Paging on Table View Header

Does anyone know a good example for Paging the views using dates... Calendar Like Paging on the Table View Header? I know it can be done a lot of time management, financial management apps have it. I just need to go on a right direction before cooking something of my own. Thanks. ...

UITableView Implementation

in the screen shot below, there are UISegmentedControl in between grouped UITableViewCells...it seems. How does one add other controls in between grouped cells in a UITableView? ...

Return nil on NSInteger return type method

I have the following UITableView DataSource method: - (NSInteger)tableView:(UITableView *)tableView sectionForSectionIndexTitle:(NSString *)title atIndex:(NSInteger)index On some items (i.e. section index titles) I just want to return "nothing", so that the table view won't jump to any section. I tried to return nil, but I get the "R...

Resize UILabel text with swipe to delete

I am having some trouble getting my application to properly resize the text of UILabels when the user does a swipe to delete or other type of delete. Currently, the delete button is covering up the text that is in the cell (if it is really long). I would like for them to operate like how SMS (move clipped text down a line) or iPod (del...

Getting strange error when reloading section index?

I am using the iPhone SDK and Objective-C and I get this error message: Assertion failure in -[UITableView _endCellAnimationsWithContext:], /SourceCache/UIKit/UIKit-984.38/UITableView.m:774 2010-01-08 13:24:16.842 MyAPP[628:20b] Terminating app due to uncaught exception 'NSInternalInconsistencyException', reason: 'Invalid update: i...

Repeat Problem of tableview cell during scrolling in iphone

There are 5 cells and each cell has one dynamic label. the height of cell is defined as per label content using heightForRowAtIndexPath method. Now, 3 cells are being displayed. When I scroll for next cells then cellForRowAtIndexPath is called once and In the output any one (4 OR 5) cell is displayed correctly but another has 1st cell co...