uitableviewcell

Program Crash when I click a switch ???

Here is my old question Link I ask a question before,But I put the answer in my code It can compiler without error But when I click the switch ,the program crash I just want to click the switch ,than return which row I click Here is my code First I create a LightTableViewController.h/.m Than I create LightCell0.h/.m in LightCel...

overlapping issue on table view cell

Hi team, I am getting overlapping issue while using following code. I used custom cell and normal cell style for this form. Any suggestion is appreciated (UITableViewCell *)tableView:(UITableView *)tableView cellForRowAtIndexPath:(NSIndexPath *)indexPath { static NSString *RSVNIdentifier = @"RSVNCell"; CreateReservationViewCe...

How to use UITableView when total number of sections and rows are unknown (and potentially large)

Normally to use UITableView, the number of sections and rows per section are known. But what if they aren't? I want to implement a lazy search, so that I actually search for the next match when new data needs to be displayed. Something on the lines of: db.prepareSearch(query) and then call something like db.nextSearchResult() when it ...

Custom UITableViewCell subview layout

I'm creating a custom UITableViewCell, similar in style to UITableViewCellStyleValue1 but with an editable text field on the right side instead of the detailTextLabel. I'm a little confused on how to size the edit field properly. I want to take the length of the textLabel into account, as well as the size of the contentView, and be abl...

removeFromSuperview only removes view from last cell

I have a UITableView set up with a custom delete button which consists of a UIButton (btnDel) added as a subview to the UITableView's cells. The delete button is added as a subview when my edit button is pressed. This works well but when I try to remove the subview using: [btnDel removeFromSuperview]; It only removes the button fr...

UITableViewCell accessory not positioned correctly after rotating UITableView on iPad

I have an iPhone app that I've converted to a universal app. The app works fine in all orientation on the iPhone. However on iPad when I rotate a table view, the UITableViewCell accessory is not repositioned correctly (see images below). I'm using a standard UITableViewCell of type UITableViewCellStyleSubtitle. The rest of view is drawn...

help on button.tag = indexPath.row

hello, I have this code on my cellForRowAtindexPath, with a custom cell and a button on the each cell. - (UITableViewCell *)tableView:(UITableView *)tableView cellForRowAtIndexPath:(NSIndexPath *)indexPath { static NSString *MyIdentifier = @"tblCellView"; TableCellView *cell = (TableCellView *)[tableView dequeueReusableCellWithIde...

tableView cell height... how to customize it?

Is it possible to modify height of only one cell in a grouped table view? I have a table view with 2 sections of 3 and 2 rows... I would change row height of the second row of the second section... How can I do this? Thanks! ...

Custom TableView Cell Indentation Issue

Hi, I created a custom UITableViewCell in my app and the default indent when the Delete button is present is not happening, below is a screenshot of my settings. Anyone have any idea as to what I'm doing wrong? Also, here's a shot of the IB properties: ...

iphone uitableviewcell - mulitiple colors in the same cell textLabel?

cell.textLabel.text = [NSString stringWithFormat:@"your name: %@", yourName]; I need yourName to appear in red (while "your name" stays the default black color). Possible? How? ...

Problem with CAGradientLayer in a custom UIView within a UITableViewCell

Hi All. I have a somewhat special situation that I need help with. I have a CustomView which I am placing in every UITableViewCell in my UITableView. No problems there. Within my CustomView is a UILabel which displays some text given to it. Depending on the length of the text, the width of the CustomView grows/shrinks. All fine. The p...

Custom UITableViewCell

I have implemented a custom table view cell. I can get the cell to load, that is not the issue. What I am struggling with is setting the text property of the label. My code is below, what am I doing wrong? - (UITableViewCell *)tableView:(UITableView *)tableView cellForRowAtIndexPath:(NSIndexPath *)indexPath { [self.icaoLabel se...

iPhone/iPad SimpleTableViewCells: What replaces the deprecated setImage setText on table cells?

iPhone/iPad SimpleTableViewCells: What replaces the deprecated setImage setText on table cells? The below code gives warnings that setImage and setText are deprecated. So what replaced them? What is the new better way to get this simple behavior? static NSString *SimpleTableIdentifier = @"SimpleTableIdentifier"; UITableViewCell *cel...

Remove highlight color but maintain image highlight in Custom UITableViewCell

I am searching this for some time but I never found a solution. I have a UITableView with custom cells, those cells have an image and I place the labels on it. The thing is, when I select a cell, the whole cell frame is selected using the default highlight color. I tried changing the style, but if I use cell.selectionStyle = UITableVie...

Method for sorting custom objects alphabetically in UITableView

I have two custom objects, "Phrase Book" and "Phrase", the Phrase Book has an array of phrases, and each phrase has a Title, Description (and a whole lot of other properties / methods). In otherwords: PhraseBook.Phrases (NSArray) => Phrase (Subclass of NSObject) { Phrase.Title = "Phrase Title", Phrase.Description = ...

Did apple change default font size on uitableviewcell?

Hi, I have a strange problem where the font size in uitableviewcell (value 1 style..) is to big on my clients iphone. but not on any of my test devices. My client has 3.0.1 Did apple change the default size or is something else causing this? ...

problem with "this class is not key value coding-compliant"

Hi, I know the meaning of this error, but I'm really struggling with it, and I need someone's help : 2010-09-21 15:03:11.562 Stocks[5605:207] *** Terminating app due to uncaught exception 'NSUnknownKeyException', reason: '[<NSObject 0x499fb20> setValue:forUndefinedKey:]: this class is not key value coding-compliant for the key actionTe...

uitableview cellforrowatindexpath display different images for cell image

I'm trying to have a different image for each one of the cells of my tableview. I do this with the following code in the cellforrowatindexpath method: if (platform = @"Win") { UIImage *winImage = [[UIImage imageNamed:@"Vista.png"] retain]; cell.imageView.image = winImage; }else if (platform = @"Mac") { UIIma...

How to make background of UITableViewCell with buttons transparent.

In IB, on the .xib where the file's owner is a subclass of UITableViewController, the structure of a cell that I wish to load from the xib is: (UITableViewCell)cell->(UIView)View->(UIButton)but1,but2,but3. I am trying to have the buttons appear on the table without the frame/background of the cell. I've made the cell's background and...

all images in table view are the same in iPhone app

I have a table view where I want a different image for each cell based on logic. Here is my cellforrowatindexpath code: - (UITableViewCell *)tableView:(UITableView *)tableView cellForRowAtIndexPath:(NSIndexPath *)indexPath { static NSString *MyIdentifier = @"MyIdentifier"; UITableViewCell *cell = [tableView dequeueReusableCel...