tableVIew 셀에 이미지를 추가하지만 표시되지 않습니다. 이미지를 버튼에 표시 할 때 조건을 사용하지만 표시하지 않습니다. 여기 TableView에서 이미지 추가 셀이 표시되지 않음
는addButton = [UIButton buttonWithType:UIButtonTypeCustom];
addButton.Frame=CGRectMake(590,2,42,42);
[addButton addTarget:self action:@selector(tab1Action:) forControlEvents:UIControlEventTouchUpInside];
addButton.tag=indexPath.row;
NSString*test=theData.Status;
if ([test isEqualToString:@"1"]) {
[email protected]"Already Member of the group";
}
else {
[email protected]"";
NSLog(@"Else is also Working Fine");
[addButton setImage:[UIImage imageNamed:@"addbutton.png"] forState:UIControlStateNormal];
}
addButton.clipsToBounds=YES;
[[cell contentView] addSubview:addButton];
cell.textLabel.font=[UIFont fontWithName:@"Helvetica" size:16];
cell.textLabel.text=[NSString stringWithFormat:@"%@: %@",theData.GroupTitle,test];
return cell;
내 포인트가 있습니까? –