UITableViewCell when are they deallocated?
Any illumination on the subject would be appreciated.
Thanks, Dave.
- (UITableViewCell *) createTableViewCell:(UITableView *)aTableView
{
MYTableViewCell *aTableViewCell;
aTableViewCell=(MYTableViewCell *)[aTableView dequeueReusableCellWithIdentifier:@"UITableViewCell"];
if (aTableViewCell==nil)
{
#ifdef MB_DEBUG
NSLog(@"Created new MYTableViewCell ");
#endif
aTableViewCell=[[[MYTableViewCell alloc] initWithFrame:CGRectZero reuseIdentifier:@"MYTableViewCell"] autorelease];
}
else
{
#ifdef MB_DEBUG
NSLog(@"Reused MYTableViewCell %@ ",aTableViewCell);
#endif
}
return aTableViewCell;
}