fix crashbug from last commit

This commit is contained in:
matthias.ringwald 2009-12-07 23:54:36 +00:00
parent b490540f96
commit dcc604ad06

View File

@ -457,12 +457,11 @@ static void packet_handler(uint8_t packet_type, uint16_t channel, uint8_t *packe
UITableViewCell *cell = [tableView dequeueReusableCellWithIdentifier:CellIdentifier]; UITableViewCell *cell = [tableView dequeueReusableCellWithIdentifier:CellIdentifier];
if (cell == nil) { if (cell == nil) {
if(onSDK20){ #if __IPHONE_OS_VERSION_MIN_REQUIRED >= __IPHONE_3_0
// @TODO 2.0 fix this: cell = [[[UITableViewCell alloc] initWithStyle:UITableViewCellStyleDefault reuseIdentifier:CellIdentifier] autorelease];
// cell = [[UITableViewCell alloc] initWithFrame:(CGRect)frame reuseIdentifier:(NSString *)reuseIdentifier; #else
} else { cell = [[UITableViewCell alloc] initWithFrame:(CGRect)frame reuseIdentifier:(NSString *)reuseIdentifier;
cell = [[[UITableViewCell alloc] initWithStyle:/* UITableViewCellStyleDefault = */0 reuseIdentifier:CellIdentifier] autorelease]; #endif
}
} }
// Set up the cell... // Set up the cell...