uitableviewcell

Custom cell and Delete/Move indicators

Hello, I have a custom UITableViewCell. However, when I got in edit mode, I don't have any Delete and Move indicators appearing. The custom cell draws itself in the contentView. In layoutSubviews, I make sure there is space on the left and one the right of the contentView so that the controls can appear (if this was the problem). - (v...

cellForRowAtIndexPath: crashes when trying to access arrays objectAtIndex:indexPath.row

Hey. Recently edited to adapt to some answers and to improve readability I am loading in data to a UITableView, from a custom UITableViewCell (own class and nib). It works great, until I try to access the objectAtIndex:indexPath.row for some arrays. I'll post my code first, it will probably be easier for you to understand what I mean ...

How to get opacity in increasing order in uitableviewcell in iphone?

How to get opacity in increasing order in uitableviewcell in iphone? I want to get the screenshot which is on itunes typed D&G. ...

How to create a Facebook-App style notifications custom table?

I want to add a custom table to my iPhone app, that should look and work like the one used in the facebook app showing the notifications. It should contain rows with links in it. The text should be black, while the tap-able parts should appear blue. As a already figured out, labels only have one font, color and so on and you can't mix s...

TableView not updating

I have a tableview , when I select a cell i go to another view (navigation controller) where i have the option to delete the cell that got me there. The cells get there data from an array. when i press the delete cell button the record is gone from the array BUT when i pop the view so I get to the TableView again it is still there and i ...

How to use a video instead of an UIImage in a UITableViewCell

Hi guys, I'm trying to make a Table View showing some Youtube videos. I know how customize a cell to show an Image, but I don't know if it is possible to show a "screenshot" of a youtube video. Do you know how youtube for iPhone and other apps do this? Thanks in advance! Art ...

UITableViewCell is 1px shorter in didSelectRowAtIndexPath than cellForRowAtIndexPath

I have a UITableViewCell that I create in tableView:cellForRowAtIndexPath:. In that method I call: UITableViewCell *cell = [[[UITableViewCell alloc] initWithStyle:UITableViewCellStyleDefault reuseIdentifier:nil] autorelease]; NSLog(@"Cell height: %f", cell.contentView.frame.size.height); This gives me a return value of 44.000000. Then...

Does anyone know how to create a tableview that consists of different cell types

I'm trying to create a tableview which contains different types of table cell but I'm stuck. How do I return a different type of cell dependent on the row number in the... (UITableViewCell *)tableView:(UITableView *)tableView cellForRowAtIndexPath:(NSIndexPath *)indexPath { function. ...

UITableViewCell is transparent when not supposed to be

My UITableViewCell is being transparent when it's not supposed to be. My table view has a background color and it shows through the table cell, even though they're supposed to be opaque. I'm not sure why this is. Relevant code: UITableViewCell *cell = [table dequeueReusableCellWithIdentifier:emptyIdentifier]; if (cell == nil) {...

UItableviewcell makes label's background clear when highlighted

I have a UIlabel on a UItabelViewCell, which I've created programmatically (ie not a nib or a subclass). When the cell is highlighted (goes blue) it makes all the background colors of the UILabels turn clear I have 2 UILabels where I don't want this to be the case. Currently I m using UIImageViews behind the UILabel's to make it look l...

Embedding a long UIWebView within a table view cell with various heights

I want to be able to embed a UIWebView into a tableview's cell (grouped style). The web view is long (longer than the screen), and I want it to display it's full length. So there is no scrolling within the web view itself, just on the table. ------------------------ | a normal table cell | ------------------------ | a normal table cel...

Minus sign when table is in edit mode

HEy all, I have a question to share..Tried to find the solution in various posts but failed. So if you know the solution in any other post Kindly paste the link over here. The question is "Can we change the click event of the (-) minus sign that appears when the table is in editmode". Can we change the image of the minus sign that a...

Insert photos in the photo library at runtime iphone sdk

Hi all, I have a tableview with custom cells. The cell shows photos which I'm getting in the form of url from an xml which I'm loading in webviews. There might be any number of photos, but I'm showing only first three photos in normal cell view. When user taps the cell, I want to insert all the photos that are in the form of urls for ...

iPhone - UITableViewCell - Change NIB CustomCell by another NIB CustomCell when select a row ??

Hi. I have one UITableView with a custom cell loaded from a nib file, it works fine. When I select a row(named CustomCell1), It is possible to load another CustomCell2 and replace CustomCell1 with it? I guess I have to use didSelectRowAtIndexPath() but I don't know how. Any ideas? Thanks. ...

UITabbleView Sections /cellForRowAtIndexPath method

hello, i have a sectioned tableview in a detailviewcontroller where i load some data in the first section. this is my code: - (UITableViewCell *)tableView:(UITableView *)tableView cellForRowAtIndexPath:(NSIndexPath *)indexPath { static NSString *CellIdentifier = @"Cell"; UITableViewCell *cell = [tableView dequeueReusableCellWithIdent...

Best solution for styled text within a uitableviewcell?

Fo styled text (bold, italic, diff fonts and sizes), what's the best solution for putting a chunk of text within a cell? The text can of various lengths, so the cell would have to change it's height accordingly. ...

How to align a UITableView's text?

In my app I have a UITableView and I want to change the text's alignment to center (not only from the sides like this cell.textAlignment = UITextAlignmentCenter; but from up and down, as well). Can you help me? thanks in advance! ...

How make UILabel with autoresizingMask in a custom cell?

I have a custom uitableviewcell with several labels and I would like for some of them to autoresize their frame (width) based on the content (text). I am not sure how to accomplish that. I tried to set fixed frame of the label and after apply autoresizingMask, but that doesn't do the trick. Any *pointer to a sample? ...

iPhone UITableViewCell: repositioning the textLabel

Hello, I am new to iPhone development and I am currently working on a simple RSS reader app. The problem I am having is that I need to reposition the textLabel inside the UITableViewCells. I have tried setFrame or setCenter but it doesn't do anything. Does anyone know what I need to do inside the tableView:cellForRowAtIndexPath: method ...

Scroll the entire page with with UITableView that doesn't take up the entire screen

The only UITableViews I have worked with thus far are sized to fill the entire page. I'm trying to create a page in my app where I will have an image and a label on the top of the page followed by a UITableView to hold comments below it. Something like this springs to mind: http://www.inquisitr.com/wp-content/fbb.jpg My problem is if ...