uitableviewcell

how to add UITableView to a view based application: iPhone sdk question

I have a View based application that navigates between all views properly. And now I have to add a UITableView to this application, I am unable to do that. I could add a UITableView, thats fine, but no idea about adding data source to it. I searched a lot and found only examples begin with navigation based applications. I have created a...

UITableViewCell - how to make right UILabel truncate instead of left one?

I have created a UITableViewCell using UITableViewCellStyleValue1, which the Apple docs define as: A style for a cell with a label on the left side of the cell with left-aligned and black text; on the right side is a label that has smaller blue text and is right-aligned. The Settings application uses cells in this style. I am tryin...

UITableView shows some gapped cells

Hi folks, During my iPhone app development, I saw this curious UITableView behavior which can be seen into this posted image: http://img690.imageshack.us/i/screenone.png/ It happens after adding more cells to the table by touching in a "More" cell button at the end. I can't figure out if the problem is the table data source or not? C...

iPhone UITableView populated by checked Table Cells. How?

I came upon this blog post the other day and literally have no idea how to implement it, logically. Any ideas? I was thinking it involves core data, with 'power' being another entity in a to-many relationship, besides that, I'm lost. ...

UITableView problem with asynchronous image loading

So this is my problem: I have an UITableView with custom UITableViewCells. Each one of the cells have one UIImageView which downloads an remote image using asynchronous image loading. It's working ALMOST perfectly, but I have this weird issue. When the view is loaded I can see the 5 or 6 first cells without scrolling (iPhone's display ...

Nonintrusive visual cue for uitableviewcell

I'd like to mark a tableview row in some way that shows it has been clicked by the user. I have a large number of rows and want users to know if they have already visited a particular row. This same technique will be useful for identifying row new entries as well. I have two questions: Would such a subtle technique violate the HIGS an...

IPhone UITableView cells getting 'stuck' and mixed up with fast scrolling

Hi all, Based on Apple's TableViewSuite sample project (http://developer.apple.com/iphone/library/samplecode/TableViewSuite/index.html) I've taken the structure of number 5 there, to create custom drawn table cells. This is working great, and scrolling speed is fantastic now compared to when I was using nibs. It has however introduced ...

Telling a UITextField to become first responder while embedded in a UITableViewCell

I have a UITextField that is a subview of a UITableViewCell. When my view loads, I want the text field to become first responder. I have a pointer to the text field in the table cell, so to do this I am trying: [myTextField becomeFirstResponder]; This returns NO all the time, regardless of when it's called, which according to the doc...

what has replaced UITableViewCell setText now that setText is deprecated?

iPhone OS 3.1.2, older program uses UITableViewCell.text, which is now deprecated. Does anyone know what the new Setter is supposed to be? Thanks! ...

Where to place the update logic for a custom UITableViewCell? (iPhone)

Hi I just have a quick "best practice" question regarding custom cells in a UITableView. My problem arises when I have build a custom cell in the if(cell == nil) block in the - (UITableViewCell *)tableView:(UITableView *)theTableView cellForRowAtIndexPath:(NSIndexPath *)indexPath (1) If I build labels and set the text property of the...

iPhone custom drawn UITableViewCell , how to load + insert images from the web in a thread?

Hi. I've been drawing custom table cells (using the samples from apple as a base) and have now come to having to do a cell which displays an image from a URL - each cell would have a different image (based on some data it has) but all the cells are the same and so the same reuse id. What's the correct structure for doing this? Obviously...

UITableViewCell Accessory Type Checked on Tap & Set other unchecked

Hello, Every one. I am confused a little bit about settings table view cell accessories. I have fixed two sections in my table Home Office What I want is as follow.... When User tap any of the cell Cell gets selected & I want to set checked (set uitableviewcell accessory type -checked of tapped cell ) And also all other cell's...

How to make custom TableViewCell with initWithStyle after 3.0

I am trying to have custom TableViewCell with initWithStyle, since it says initWithFrame is deprecated after 3.0. Everything worked fine with initWithFrame before. Is there any tutorials or sample code available for this? Thanks. ...

Distinguish between click on AccessoryView and Cell Content and will Apple allow it?(iPhone)

Hi I was wondering if there is a delegate method to implement that let's me distinguish between a tap on the content view of the cell and the disclosure symbol to the right. I would like to send the user to two different view depending on where on the cell they tap. I think the event is normally caught by testing if the tableView is: ...

How to restore rounded corners for a UITableViewCell filled with an image?

I have a UITableViewCell, and I want to use the image property to fill it with an image. When it is first in a grouped UITableView, I want it to have the standard rounded corners. Unfortnately, the image fills the rounded corners as well.. Is there any way to retain them without using a transparent image? ...

Text misalignment on tableview cells on iPhone device

For some reason, when I am using the iPhone simulator, all of my text in my tableview cells displays correctly. However, when I publish to the device, the text inside of the cell is shifted up to almost outside of the bounds of the cell. Any ideas as to why this would be happening on the device and not on the simulator? ...

UISwitch shows up on other cells! Glitch?

I have 5 seperate sections in a table, 2 of the sections have customizable cells, when in EDITING mode, 2 of the sections produce an additional cell that will add a new cell to the list. My problem is that when I invoke edit mode, the UISwitch FREAKS OUT! and decides to jump around, VERY SIMPLE code, just have NO IDEA why the UISwitch is...

UITableView cells do not stay selected when pushing a view

I have a UITableView on a view. This UITableView has cells which are made up of a checkbox custom control, a label and a disclosure accessory. When I select a row in the tableview it selects correctly (blue highlight shows 100% correctly). I then created a didSelectRowAtIndexPath delegate to push a detail view controller onto the naviga...

Multiple cells per row in UITableView

Is there any way to have multiple cells per row in a uitableview using the uitableviewstylegrouped style? It exists in several of the official applications such as contacts but it could easily be a private API. If it is private has anybody found a good workaround? ...

UITableViewCell custom delete buttons

I want to put my own custom delete buttons on the uitableview cell when it goes into edit mode, similiar to the "+" add button for inserting, just a red "x" in the same position as the "+" button is. how would i do this? ...