uitableviewcell

iphone: custom UITableViewCell taller than the default cell view.

Hello, I'm creating an application that consists of a ListView with 5 rows: - 1st one containing a graph - 2nd to 5th rows containing some data with the same formatting. I have created 2 classes: GraphCustomViewCell and DataCustomViewCell. Depending upon the position of the cell I load the correct CustomCell with: NSArray *topLevelObj...

Custom drawing on top of a UITableView

Hi, I have some problems drawing some custom content over a UITableView. What I did was subclass UITableView and overwrite the -(void)drawRect method something like this: - (void)drawRect:(CGRect)rect { CGContextRef ctx = UIGraphicsGetCurrentContext(); [super drawRect:rect]; CGContextSetRGBFillColor(ctx, 255, 0, 0, 1.0f...

Table cell in a split-view controller - selected cell becomes deselected when called by reloadData

I'm working on a universal app that uses a SplitViewController to present a master-detail view. In the iPad HIG on Split Views, Apple states: In general, indicate the current selection in the left pane in a persistent way. This behavior helps people understand the relationship between the item in the left pane and the contents of the...

iphone how to localize only particular parts of app

i'm making a korean/english app, so naturally i would need both english and korean displayed on the same tableview cell at the same time. i've considered specifying an element in the plist to be a particular language... but how would i write in korean characters? i have a dreadful feeling there will be much to custom code for this with...

Images inside of UILabel

hello everyone! I'm trying to find the best way to display images inside of UILabels (in fact, I wouldn't mind switching to something other than UILabel if it supports images with no hassle) The scenario is: I have a table view with hundreds of cells and UILabel being the main component of each cell The text I assign to each cell con...

UIImageView in UITableCell gets a weird size

Hi, I'm trying to place a UIImageView in a UITableViewCell. I create a special view called ProductView. In that view, I have several components, one of them being a UIImageView. I set this ProductView as content view of the UITableViewCell. Everything is drawn properly except the UIImageView. UIImageView gets scaled meaninglessly. It's...

iPhone : form like new contact

Hello everyone. I have some questions about the Apple iPhone Contact App. I want to use the same methode to create and modify information. Here's two pics : So we have the creation and the edition. The form looks like an UITableView with a groupedStyle but I don't know how to re-creat all of this. Have you got an idea or a tutori...

How to create a Text Field in Grouped Table view Cell in iPhone

Hi Guys, I want to create a text field in the group table view cell. If i create one text field in a cell, the text fields are over lapped in all the grouped table view cells. I donno how its happened. So i want to create a text field in a grouped table view cell (Not all the cells). How can i achieve this?. Is there any sample code ava...

Custom width for cell in UITableViewStyleGrouped tableviews

In the iPhone SDK, is there a way to customize the width of the cells in a tableview that is having the style of UITableViewStyleGrouped? The problem is that I am using an custom background image (width of 290px) for the cell.backgroundView but apparently that gets stretched. I want to be able to set the custom width of this cell so the...

UIActivityIndicator on UITableViewCell not displaying while calling a webService

Hi coders, I guess my problem is very simple to solve but I haven been able to do so. Here is my problem: I have a custom table view cell that contains a UIActivityIndicator. When a cell is selected I push another view but this second view makes a call to a web service to bring data. Here is my code // Override to support row selectio...

setting target for disclosure button on subclassed UITableViewCell

I've created a subclass of UITableViewCell to create some custom appearance and UI functionality ('swipe to reveal delete button'). Some of the cells are disclosure/detail disclosure type, and have a UIButtonTypeDetailDisclosure etc added manually. I cannot use the table view controllers' UITableViewCellAccessory for row at index path m...

[iPhone] How to dynamically resize UITableViewCell height

I have the classical grouped UITableView with editable UITextViews inside every cell. This text views can be single or multi-lined, and I want the cell to increase its height as the user writes and the text starts a new line. My question is: do I need to reload the whole table just to increase the height of a cell? Isn't there any other...

Can you have two different text colors (in the same row) of a UITableViewCell?

I have a bunch of rows with more than one word in them, eg. "John Appleseed". I want the last word in each to be red, with the preceding words black. I know how I could rearrange the current label layout and have two with different colors, but I'm not sure that would work out. I'd have to create a label for "John" (with the width it nee...

UITableViewCell data not showing up *initially* in UISplitViewController

I have a generic UISplitViewController (UITableView in the RootViewController and other stuff in the detail view) I have modified UITableViewCells in 2 ways: The rows have a height of 55 The UITableViewCells contain both a UIImage and UILabel There are 50 rows total PROBLEM: When I launch the app, the first 13 rows (the ones that ...

How to prevent textLabel to be truncated when using UITableViewCellStyleValue1?

When using UITableViewCell with UITableViewCellStyleValue1 style the textLabel.text is being truncated when detailTextLabel is pretty long. static NSString *CellIdentifier = @"Cell"; cell = [[[UITableViewCell alloc] initWithStyle:UITableViewCellStyleValue1 reuseIdentifier:CellIdentifier] autorelease]; cell.textLabel.text = @"Publisher"...

iPhone - How to use ABTableViewCell ?

Hi, I'm working on a UITableView whose cells contain an UIImageView subclass which gets data from a URL and cache images to the iphone disk. Problem is, event with cached images the scrolling tends to be stuttering. So I searched a bit and found ABTableViewCell ( github.com/enormego/ABTableViewCell ) which is supposed to dramatically i...

UIWebView as part of a UITableViewCell: leading to crash because of a thread lock

Hi everybody, I'm trying to add a UIWebView as a subview of a UITableViewCell in order to display some data formatted with MIMEType 'application/xhtml+xml'. Even just initializing the UIWebView as described in the following code leads the application to crash! - (UITableViewCell *)tableView:(UITableView *)tableView cellForRowAtIndexPath...

How to set UITableViewCellStyleSubtitle textAlignment to center in iPhone iOS4?

Since upgraded XCode to Version 3.2.3 with iPhone SDK 4 my code doesn't work anymore. I have a default cell with style UITableViewCellStyleSubtitle and want to set the textAlignment of textLabel and detailTextLabel to center, but nothing happens. Same code used before now not working anymore. On UITableViewCellStyleDefault center alignm...

UITableViewCell repeats after scrolling

I am not sure why my UITableViewCell's are repeating after the user scrolls? - (UITableViewCell *)tableView:(UITableView *)tableView cellForRowAtIndexPath:(NSIndexPath *)indexPath { static NSString *CellIdentifier = @"Cell"; ChartlyCell *cell = (ChartlyCell*)[tableView dequeueReusableCellWithIdentifier:CellIdentifier]...

Row selection when dragging over a UITableView with scrolling disabled

If one were to create a standard grouped table view consisting of two rows and then touch down on the first row, the cell would highlight. If one were to then drag one's finger down, the selection of the row cancels, and the table view begins to move with the drag. Imagine the same situation, but with table view scrolling disabled via t...