iphone - problem with uitableview dynamic height adjusting correctly -


I am working on a project that has 3 rows in 1 section. Now, what I would like to do, The cells of 1 are capable, which is dynamic in motion. First of all, I do not even know what is possible. If it is, then I want to do it! I've got a very helpful tutorial that helps me through this. I have applied StringHelper files that they have recommended, and they work very well for a cell, but when there are multiple cells, I start with problems. This picture shows that when I save the text:

And as you can see for any reason, randomly incorporating a good Arab looking symbol in the beginning.

The code I am working with is:

  - (CGFloat) Table view: (UITableView *) Table High height: [Entree.notes / * entree.notes is putting or may not be correct * / length] == 0? KDefaultNoteLabel: a note; CGFloat height = [label RAD_textHeightForSystemFontOfSize: kTextViewFontSize] + 40.0; Return height; } - (UITableViewCell *) TableView: (UITableView *) Table View CellForAindindpath: (NSIndexPath *) Index Path {Fixed NSString * CellIdentifier = @ "cell"; UITableViewCell * cell = [tableview] dequeueReusableCellWithIdentifier: CellIdentifier]; If (cell == blue) {cell = [[[UTTEWews alloc] initWithStyle: UITableViewCellStyleValue2 again: user: cell identifier] AutoExecution]; Cell.editingAccessoryType = UITableViewCellAccessoryDisclosureIndicator; } Annote = entree.notes; NSString * label = [aNote length] == 0? KDefaultNoteLabel: a note; Switch (indexPath.row) {case0: cell.textLabel.text = @ "name"; Cell.detailTextLabel.text = entree.title; break; Case 1: cell.textLabel.text = @ "Date"; Cell.detailTextLabel.text = [self.dateFormatter stringFromDate: entree.date]; break; Case 2: // aNote = entree.notes; If ([[Selkotentwu Sbwugh] count]> gt;} {ID view = [[cell content weave Sbwugh] Objektaetindaks: 0]; UILabel * System Fontof size with labelToSize = view; [label RAD_resize Labels: Labels: KTextViewFontSize]; } and {UILabel * cellLabel; Sellebl = [label RAD_newSizedCellLabelWithSystemFontOfSize: kTextViewFontSize]; [Cell.contentView addSubview: Sellebl] [Sellebl release];} Cell.textLabel.text = @ "notes"; Cell.detailTextLabel.text = entree. Notes; // Description]; break;} return cell;}  

where entry is the name of my NSManaged object, and the title, the Inank, note attributes I can enter all you need is a cell 3, or notes feature to be able to set up a dynamic height so they text in large quantities, the cell and only the room, and everything else remains the same as you can see, I'm trying a few things, I apologize to go if it is messy, but the code of the current system, the production of the above pictures, which It is close, but not enough. This can be just a quick fix, so if someone can help me, then it will be appreciated very ! Thanks in advance

I wrote a blog post about it that provides code for multiple cells. You can read it

Avakniy your address in your answer because you have not formatted it correctly if you do it right, you might be more / better responses.

Best regards


Comments

Popular posts from this blog

c# - How to capture HTTP packet with SharpPcap -

php - Multiple Select with Explode: only returns the word "Array" -

php - jQuery AJAX Post not working -