iphone - UITableViewCell cell.editingAccessoryType not working -


I have a tableview. Everything is installed and working. I had a cell. Auxiliary work is working well, but once I have not received the cell. It worked with the deprecated method to make the assistant work work, but with the new ... No luck at least for the first section, my code is here:

 < Code> - (UITableViewCell *) TableView: (UITableView *) Table View CellForAind Pound: (NSIndexPath *) indexPath {UITableViewCell * cell = zero;  

switch (indexPath.section) {/ Case RFE_SECTION: switch (indexPath.row) {case 0: {static NSString * RFECellIdentifier = @ "RFECellIdentifier";

  cell = [Tableview decouwer reusable cell identifier: RFECIL identifier]; If (cell == blue) {// create a cell to display "add visit" cell = [[[UITableViewCell alloc] initWithStyle: UITableViewCellStyleDefault reuseIdentifier: RFECellIdentifier] autorelease]; Cell.textLabel.lineBreakMode = UILineBreakModeWordWrap; Cell.textLabel.numberOfLines = 0; Cell.textLabel.font = [UIFont fontWithName: @ "American Typewriter" Size: 16.0f]; } If (visit.rfe.length == 0) {cell.textLabel.text = @ "Add the reason for the encounter"; } If (visit.rfe.length! = 0) {cell.textLabel.text = visit.rfe; }   

} break; } Break;

Next section, etc., etc., etc.

Whenever I enter the Edit Assert Type, I go to edit the table view and it does not appear. any idea? Do I miss some representative method or something?

I have - (Zero) Set Editing: (BOOL) Animated Editing: Set Up (BOOL) Animated Method Will there be any difference? I've just been lost in a while thanks in advance.

Given that you reuse cells, make sure you both Supporting Type and Edit Asserty Type for each cell and comment out - Make available: Accessory typefoyerWirendexpath:. If nothing happens, then comment all your cell setup codes in the in-output view: cellForRowAtIndexPath: is returning an empty cell with an assistant.


Comments

Popular posts from this blog

oracle - The fastest way to check if some records in a database table? -

php - multilevel menu with multilevel array -

jQuery UI: Datepicker month format -