Я хочу добавить uiimageview и uilabel в выбранную строку.Теперь, когда я выбираю строку в таблице, тогда
- (void)tableView:(UITableView *)tableView didSelectRowAtIndexPath:(NSIndexPath *)indexPath {
// Deselect cell
static NSString *CellIdentifier = @"Cell";
UITableViewCell *cell = [tableView dequeueReusableCellWithIdentifier:CellIdentifier];
cell = [[[UITableViewCell alloc] initWithStyle:UITableViewCellStyleDefault reuseIdentifier:CellIdentifier] autorelease];
> tableView deselectRowAtIndexPath:indexPath animated:TRUE];
if (indexPath.row == 0) {
imageView1 = [[UIImageView alloc] initWithImage:[UIImage imageNamed:@"AboutImage.png"]];
imageView1.center = CGPointMake(310, 48);
[cell.contentView addSubview:imageView1];
[imageView1 release];
imageView2 = [[UIImageView alloc] initWithImage:[UIImage imageNamed:@"AboutImage.png"]];
imageView2.center = CGPointMake(310, 48);
[cell.contentView addSubview:imageView2];
[imageView2 release];
Но потом, после этого, изображение не появляется .. Пожалуйста, кто-нибудь поможет мне .. Как добавить uiimageview и метку в ячейку.
Заранее спасибо