I have a very strange problem with a UITableview within a navigation controller on iPhone simulator. It has been sung correctly. They are all the same, but the majority do not remember the secondary set by me, scroll through the changes in the scenes which are helpful to the cell, so I suspect that it is getting some kind of cell caching, Although the content is right for each cell. I also set up an image in the form of a background and it was also only displayed sporadically, but I have decided that
cell Background view = [[UIImageView alloc] INIT WITH IMAG: [UIImage imageNamed: @ "yellow-bar_short.png"]];
(which also provides a random cell along with the background)
cell. BackgroundColor = [[UIColor alloc] initWithPatternImage: [UIImage imageNamed: @ "yellow bar_short.png"]];
Now I have to fix the problem with the assistant shown on the random cell. I tried to run the code from Cellforrao Attendex to Will Despelekel but it did not make any difference. I put it in a log command to make sure that it is running through each frame.
Actually see this table (UITBel Stylesheetship) which gets its information from a server & amp; Then it is updated by a representative method to reload. The code is: (void) Table view: (UITableView *) table view willdeselhel: RowAtIndexPath for (UITableViewCell *) cell: (NSIndexPath *) Index pathway {NSLog (@ "% @" , [NSString stringWithFormat: @ "Setting the color for cell% i", indexPath.row]); // set cell background // cell Background view = [[UIImageView alloc] initWithImage: [UIImage imageNamed: @ "yellow-bar_short.png"]]; Cell.backgroundColor = [[UIColor alloc] initWithPatternImage: [UIImage imageNamed: @ "yellow-bar_short.png"]]; Cell.textLabel.backgroundColor = [UIColor clear collar]; Cell.detailTextLabel.backgroundColor = [UIColor clear collar]; // detailsTableViewAccessory Nibb / ii of this view Nib & lt; - View & lt; - imageview & lt; - image cell.setreviewview = DescriptionTableViewView is the scene with image views; } // When done, the object is called by the Fitching Object - (Zero) List Data Transfer Complex: (ArticleListParser *) Article ListParserObject {NSLog (@ "Analysis of data, detailed table reloading") ; Self.currentTotalResultPages = (((article listpers object curantarticlecount - 1) / 10) + 1); Self.detailTableDataSource = [Article Listener Object.Righten Array Copy]; // Make a local copy of the returned array. Re-present the table with returned returned array data (none of these are fixed) [select self.DetailTableView displayOnMineTrade: @Selector (reloaded data) with object: zero waitUNAET don: no]; // [self.detailTableViewReloadData]; // Re-enable the required button (including table cells) letUserSelectRow = TRUE; [Btnbnimet enablefull TRUE]; [BTnbPrice set enabled: TRUE]; // Please wait Message NSLog (@ "Please Wait Wait"); [Please remove VietviewConverterAbject.lookingprovisionview]; }
I just included the code that I thought was relevant, if needed, could supply more. I still can not test it on an iPhone, so I do not know whether it is possibly a simulator discrepancy or a bug in my code. I have always received good feedback from any thoughts, questions?
Resolve! The thought of what I thought was a rendering problem, in fact there was a problem of stupidity in my part (after the tutorial I blindly do the right thing) IB was making an example of only secondary scene which was assigned to a cell . It was determined by rebuilding the view on each cell creation:
cell.accessoryView = detailTableViewAccessory;
replaced by
UIImageView * cellAccessoryView = [[UIImageView alloc] initWithFrame: CGRectMake (308, 0, 12, 75)]; CellAccessoryView.image = [UIImage imageNamed: @ "Blue-Accessory-Pointer Page"]; [Cell.contentView addSubview: cellAccessoryView]; [CellEastern release];
I should also add that my problem with cell background was fixed with the same method. In addition to the addSubview line, you
Cell.accessoryView = cellAccessoryView;
Comments
Post a Comment