0
我有一個自定義的細胞的tableview,我加入了一些數據,其如下:UIImage的自定義的UITableView調整大小上reloaddata
{
UIImage *img = [UIImage imageNamed:@"black_lab_tideat2b.jpg"];
UIImageView *petPic = (UIImageView *)[cell viewWithTag:101];
UILabel *petName = (UILabel *)[cell viewWithTag:102];
petName.text = [current petName];
}
這個數據正確的UITableView的顯示。
當我嘗試使用commitEditingStyle刪除一行時,會發生該問題。在我從sqlite中刪除選定的記錄並執行
{
[self.tblListProfiles reloadData];
}
它調整其餘單元格中的圖像大小。此調整後的圖像變回正常大小後,我添加一個新的記錄到SQL和使用
{
[self.navigationController popViewControllerAnimated:YES];
}
你能幫幫刷新?
問候
謝謝,但該表的高度保持和以前一樣。圖像實際上超出了單元格邊界。 – Abhi
謝謝。這是我的代碼中的錯誤。所有固定。謝謝你的幫助 – Abhi