ios,uitableview,reuseidentifier
It turned out that the only way to reuse a cell it to design it with xib and register at tableview that xib with cellid.
uitableview,storyboard,custom-controls,reuseidentifier,registerclass
Try this.... -(UITableViewCell *)tableView:(UITableView *)tableView cellForRowAtIndexPath:(NSIndexPath *)indexPath { YourCustomCell *cell = (YourCustomCell *)[tableView dequeueReusableCellWithIdentifier:CellIdentifier forIndexPath:indexPath]; return cell; } ...
ios,uitableview,progress-bar,tableviewcell,reuseidentifier
The problem is you're reusing your audioplayer and surrounding logic. You need something external to check whether the cell in question is the one playing the sound and you need to move the controller logic into the controller. Add this property to your view controller... @property (nonatomic) NSString *playingFilename; Move...
ios,performance,uitableview,reuseidentifier
Creating a secondary cache with preloaded cells solved the scrolling problem. On viewDidLoad I'm registering nibs (with registerNib:forCellReuseIdentifier:) and right after that also in viewDidLoad I'm creating a mutable array and I use dequeueReusableCellWithIdentifier: to load few cell's for each nib and I put those cells in my mutable array....
ios,objective-c,uitableview,cell,reuseidentifier
It looks like you should implement -prepareForReuse method in your custom cell class and cleanup cell's content there. https://developer.apple.com/library/ios/documentation/UIKit/Reference/UITableViewCell_Class/#//apple_ref/occ/instm/UITableViewCell/prepareForReuse Also instead of if (cell == nil) { NSArray *nibs = [[NSBundle mainBundle] loadNibNamed:@"CalendarDayCell" owner:self options:nil]; cell = [nibs objectAtIndex:0]; } is better to register cell at -viewDidLoad method: [self.tableView registerNib:[UINib...
ios,uitableview,reuseidentifier
So, after an extensive discussion in the comments the problem seems to be the following: The logic of [stringsOfObjects addObject:cell.textLabel.text]; in the deleteObjects: method is wrong. This is because it is taking the text direct from the cells rather than the array backing store that populates the cells. Cells can...
swift,reuseidentifier,class-attributes
It's just as the compiler said, constants / variables cannot be declared at the class-level yet. The "yet" in the error is key: Apple does intend to add support for this feature, and if you wait a few Xcode releases, it should be available.