私の要件は、テーブルビューのセルに円形のイメージを表示することです。その目的のために行のセルで私は私のimageviewのアウトレットのコーナー半径を与えました画像は円形の形式で表示されますが、スクロールするとセルが揺れているときにコーナーの半径のコードがうまくいけば、TabelView角の半径を指定するとセルが揺れますか?
- (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;
}
デバイスをチェックインしましたか?あなたは問題を抱えていますか? –
はいiPadでチェックしました。問題があります –
スクリーンショットをアップロードできますか? –