uitableviewcell

UITabBarController moreNavigationController table cell background images

Wow, was that ever a mouthful. :) We've already seen a good thread on customizing the more menu (table view) in a tab bar. For our next trick … how might one add a background image to the table cells? I thought I could get away with overriding tableView:cellForRowAtIndexPath: in my More Table View's Data Source class (see earlier link...

How to reliably subclass UITableViewCell for grouped UITableView?

When writing a customized subclass of UITableViewCell, I find that the results work well for the rectangular cells of a plain-styled UITableView, but do not work at all for the rounded cells in a grouped-styled table. Is there a way to reliably subclass UITableViewCell to draw cells which work for grouped-style tables? (Without using In...

Help with Adding AdMob ads to a UITableView (iPhone)

Hi guys, I am trying to add an AdMob ad to a table view. I would like it to show up in every 10th cell. (Eg. like how it is in the Free version of the Reddit App if you have it). I tried to follow the AdMob documentation but I didn't have any luck and I'm sure there is something I am missing. Could anyone shine some light on a simple ...

How to find the row index of a UIButton is a TableCell? (iPhone)

Hello all! In my app, I have a table displaying a cell in each row. In Interface Builder, I dragged a button onto the cell, styled it as a Dark Info button, and connected it to a IBAction. That is working fine. Only, I want the button to behave differently, depending on the row of the table where the cell of the button is. How would I ge...

Getting subclassed UITableViewCell from cellForRowAtIndexPath

I was calling UITableViewCell *cell = [tableView cellForRowAtIndexPath:indexPath]; from -(void)tableView:(UITableView *)tableView didSelectRowAtIndexPath:(NSIndexPath *)indexPath in order to change the cell accessory. This works fine, but I ended up needing to subclass UITableViewCell. What's the correct way to get the subclassed...

Fast Scrolling table cells with images. Is this how it is done?

Hello, I'm try to create a fast scrolling list using the creator of Tweetie, Loren Brichter's technique. I believe the idea is to "do your own drawing" instead of using using subviews and images in the UITableViewCell. Below I have extend his example to include an image and I'm not sure if this is the correct way to do it? I have bee...

Problem creating checklist (similar to TouchCells sample code) app for iPhone. Random cells get checked.

I've been having a problem creating a checklist in the style of the TouchCells example from the Apple sample code. Basically, it is a table that allows multiple selection of its items and gives each selected item a check mark. The problem I'm having is that when I select an item and then scroll down the screen, another item (off the scr...

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

Multiple Custom UITableViewCells - ReuseIdentifier and NOT reusing cells

I am having an issue with how the iPhone reuses Cells in table. The problem is that implemented methods of the class also get "reused" and changes in one cell get applied to other cells that were reused. I have a progress indicator that should only be updating in one cell after user interaction, but the progress indicator updates and t...

How to get the size of the "Delete" button in a UITableViewCell when swipe to delete?

I add a datetime label on the right of a table cell. When swip-to-delete shows the "Delete" button, the datetime label need to shift left a little bit. But how to get the "Delete" button's size? I tried to find it in the cell.subviews but failed. ...

vertical text alignment for UITableViewCellStyleValue2

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

How can I manually display the delete confirmation for a UITableViewCell?

Hey all, I've made a custom editingStyle for my tableView cells. Well really it's the delete functionality, but with a custom icon (the designer does not want the standard red minus icon). I've figured out how to suppress the standard icon and display the custom one. Now I'm trying to display the delete confirmation button after pressi...

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

iPhone app - some custom UITableViewCell questions

Hi, At the moment, I have a settings view in my iPhone app built with Interface builder, it consists of a background image, some text fields, labels and buttons. Because this looks bad, I want to convert the settings view to an UITableView with custom UITableViewCells. I already tried adding some cells into my settings view's XIB and r...

UITableView problem 3.0 (when the table view in the editing mode)

I am customizing the tableView (using UITableViewCell class for my View). I just want to show the reordering control when the user presses edit button. My program is working fine in 2.2 but when its 3.0 its not working properly. When i press edit button ma cell shift to left and the discloser indicator changes to the reordering control...

Creating UITableViewCell with add photo button like in Contacts app

Hi, When you add a new contact, the first row contains the add photo button and the x co-ordinate of start of the cell is set to some value which is greater than the rest of the cells. How can this photo button be added and the cell frame can be changed? Thanks! ...

How can I set all cells in a tableView as checked or unchecked?

I have a checklist in a UITableView and I have a UISegmentedControl with "Select All" and "Deselect All" options. I am wondering how I can reset all the cells while viewing the table. The [self.tableView reloadData]; function does not seem to do the trick. Any thoughts? Thanks! ...

Scrolling the table view after reloading uitableview

In my application, I want to append cells to the current tableview and have it scroll to the first added cell after the cells have all been appended. I have done the appended code by calling appending to the stack and calling [tableview reloadData]. However, I was wondering if there is a delegate or a notification that is sent by the uit...

Setting variable UITableViewCell height

I am using a custom UITableViewCell, which has some labels. There is one label in the cell where the string length is variable, due to this i cannot set a constant height to the cell in heightForRowAtIndexPath method. Neither I want to place the calculation logic out of my custom cell into the table delegate. ...

iPhone UITableViewCell slow performance

I just wrote a small application that read from a site feed and display in UITableViewCell. I am using custom view cell and my UITableView is screwed in scrolling like it is not very smooth in scrolling upside down. Any idea? Here's the code for my UITableViewCell, - (UITableViewCell *)tableView:(UITableView *)tableView cellForRowAtInde...