uitableviewcell

TableViewCells width in iPhone

Hi. I'm trying to create a cell on a tableview which doesn't go "all the way" from left-to-right of the screen. Basically, what I need is a cell which (as usual) starts on the left side of the screen, but with a given width, creating a free space on the right. Is there any way of doing it? I wasn't able to find any example. Sorry for...

UITableView Group Style Cell background.

Hello, my question is simple.... How to get rid of the white background color of cells in Group Style. I know about clearColor but it just clears the background color of the tableview itself and not the background color of cells. Thanks in advance. ...

UITableViewCellAccessoryCheckmark in black?

Hello Is there any easy way to change the color of the "UITableViewCellAccessoryCheckmark" from standard blue to black? Or do i need to make a subclass of uitableviewcell and insert a imageview myself? Thanks :-) Sebastian ...

show content based on navigation route? UITable

Hello All, I have a table which I'm using as a menu. If my user navigates from a table cell titled "basic math" I want to show a text view with text being populated from an NSArray titled the same as the cell title...so basicmath.txt Can anyone point me in the right direction or tell me if this is at all possible? or am I barking up ...

UITableViewCell indentation not in edit mode.

When you enter editing mode on a grouped-style UITableView, the cells indent to show the editing control (if you aren't sure what I mean, see this picture (editing mode) http://i.imgur.com/GJXvL.png and this (non-editing mode) http://i.imgur.com/ahKYS.png). I am trying to manually indent a cell when the tableView is not in editing mode....

Drawing custom UITableCells with the correct data

I've got a UITableView with custom tablecells. First I had a version which implemented a separate NIB file to create the custom cell view, but this makes scrolling awfully slow. The official answer is to do your own drawing, so I implemented a drawing variant (ABTableViewCell). Everything is working now, except for the drawing of the ce...

How can I find out the name, ID, or type of a UITableView Cell?

-(CGFloat) tableView:(UITableView *)tableView heightForRowAtIndexPath:(NSIndexPath *)indexPath { if([tableView.somethingMagicalHereThatAllowsMeKnowWhichCellItIs isEqualToString:@"CellType"]){ return 50; } return 25;} I have tableView with multiple cells of different types, and I want to style them accordingly, but the problem is th...

UITableViewCell imageView.contentMode doesn't work in 3.0

In UITableViewCellStyleDefault, setting the contentMode on the imageView has no result. If I change my build SDK to version 3.1, everything again works. I don't get any warnings or errors when compiling on 3.0 but this code: cell.imageView.contentMode = UIViewContentModeScaleAspectFit; cell.imageView.image = [UIImage imageNamed:[[NSSt...

How to add a custom subview to a UITableViewCell derived class when the UITableViewCell is loaded using loadNIB

Hi! I am trying to add a custom view control to a custom UITableViewCell which I had designed in the interface builder. Now, to load UITableCellView I am using NSArray * loadedViews = [[NSBundle mainBundle] loadNibNamed:@"CustomSearchResultsCell" owner:self options:nil]; What method of the CustomSearchResultsCell class will be call...

UITableView visibleCells (in section?)

I have X sections. I want to "lazy" load images in different Custom Cell for each section. Is there any better way to do that than checking each time if cellArray.object (visibleCells) is equal to Ccell in which i want to load those images? UPDATE: Here is a working code(for now ...). My code is based on Adrian Kosmaczewski's example h...

UIColor Function Crashes

Okay, so I have a UITableView that I want to apply themes to. I think I've figured out how to do it. What I do is when my view loads, I call a function called "[self getValues]". Here is how it looks: - (void)getValues { NSUserDefaults *defaults = [NSUserDefaults standardUserDefaults]; NSString *theme = [defaults valueForKey:@"...

unused cells background color

I have a UITableView which displays about 5 cells at a time, yet in my table there might be cases where there are only 2 cells with content as seen on this picture: The white cells below do not look nice, how can I change the background color of these cells to black too? UITableView does not have a backgroundColor property. Thanks! ...

How to get the same UITableViewCell layout as in the Address Book app?

Hi, I currently have a custom UITableViewCell which contains a few labels, and an image. The "main" label is used to display people's names. Currently, I'm styling it in bold text. What I'd like to do (to gain some space and readability), is to mimic the Address Book app cell style, that is: first name in light text, and family name in ...

Access custom cell within - (void)tableView:commitEditingStyle:forRowAtIndexPath:

Hey Guys, does anybody know how i can access a custom cell within the - (void)tableView:commitEditingStyle:forRowAtIndexPath:. I need access to my Custom Cell Class to retrieve some parameters. Thanks. ...

iPhone UITableViewController and Labels related.

I have a UITableViewController List showing text containing hyperlinks and I have a label which displays hyperlinks in a special manner so that they are clickable. I want that, when a user clicks on any UITableViewCell then the label would turn on the links in clickable form and when the user scrolls the UITableViewController List the L...

Clear tableView cell cache (or remove an entry)

Hi, I have the same question problem as described here http://stackoverflow.com/questions/2286669/iphone-how-to-purge-a-cached-uitableviewcell But my problem can't be solved with "resetting content". To be precise - I use a custom cell (own class). While running the application it is possible that I have to use a different "cell type"...

UIimageview drawInRect with aspect to fit mode.

previously i had custom tableviewcell and was loading from Nib.in that i have specified mode "Aspect to fit" for my imageview. but loading this Nib file was too slow. so i have started drawing content of uitablewviewcell. here is a code for what i am doing to draw image. [image drawInRect:CGRectMake(10,10,80,100)]; but this does not g...

TableViewCell autorelease error

OK, for two days now i have been trying to solve an error i have inside the cellForRowAtIndex method, let start by saying that i have tracked down the bug to this method, the error is [CFDictionary image] or [Not a Type image] message sent to deallocated instance. I know about the debug flags, NSZombie, MallocStack, and others, they h...

Intercept tap on Deletion control in UITableView

Hi I want to intercept taps on the circular Deletion control (example of Deletion Control button) on my TableView to know when the "Delete" button comes in and I can change my cell layout. Can Anyone help me? thanks a lot! ...

Why is a UITableViewCell 1px taller than the row height?

I have a UITableViewController. In viewDidLoad I set the rowHeight: self.tableView.rowHeight = 43; But then in cellForRowAtIndexPath, I check the height of the cell: NSLog(@"bounds: w = %f, h = %f", cell.bounds.size.width, cell.bounds.size.height); This prints a height of 44 and a width of 320. Anyone know why it would print a he...