Meine Anforderung besteht darin, kreisförmige Bilder in Tabellenansichtszellen anzuzeigen. Zu diesem Zweck in Zelle für Zeile gab ich Eckenradius für den Ausgang meiner Bildansicht jetzt Bild wird im kreisförmigen Format angezeigt, aber wenn Scroll-Zellen zittern, wenn ich den Eckenradius-Code zu stoppen funktioniert gut kann jemand sagen mir das Problem?TabelView Zellen zittern beim Eckenradius?
- (UITableViewCell *)tableView:(UITableView *)tableView cellForRowAtIndexPath:(NSIndexPath *)indexPath{
NSString *cellIdentifier [email protected]"notification";
NotifiucationTableViewCell *cell =[tableView dequeueReusableCellWithIdentifier:cellIdentifier];
if (cell == nil) {
cell = [[NotifiucationTableViewCell alloc] initWithStyle:UITableViewCellStyleSubtitle reuseIdentifier:cellIdentifier];
}
ZSAnnotation *objArray = [personDetails objectAtIndex:indexPath.row];
[cell.profilePic sd_setImageWithURL:[NSURL URLWithString:objArray.personImage]
placeholderImage:[UIImage imageNamed:@"profile-pic-big.png"]];
cell.personDescription.text = objArray.personDescription;
cell.personTitle.text = objArray.personTitle;
myString = [[NSNumber numberWithFloat:objArray.rating] stringValue];
km = [NSString stringWithFormat:@"%@%@", myString, @" KM"];
cell.personNearbyDistance.text = km;
[cell.callButton addTarget:self action:@selector(callButtonAction:) forControlEvents:UIControlEventTouchUpInside];
cell.accessoryType = UITableViewCellAccessoryDisclosureIndicator;
cell.selectionStyle = UITableViewCellSelectionStyleNone;
cell.backgroundColor = [UIColor whiteColor];
cell.profilePic.layer.cornerRadius = 30;
return cell;
}
Haben Sie das Gerät eingecheckt? Hast du ein Problem? –
Ja, ich habe in iPad eingecheckt ich habe ein Problem –
Können Sie Screenshot hochladen? –