ios - UIImage resizes in custom UITableView on reloaddata -


i have tableview custom cells , adding data below:

{  uiimage *img = [uiimage imagenamed:@"black_lab_tideat2b.jpg"];  uiimageview *petpic = (uiimageview *)[cell viewwithtag:101];  uilabel *petname = (uilabel *)[cell viewwithtag:102];  petname.text = [current petname];  } 

this data shows correctly in uitableview.

the issue occurs when attempt delete row using commiteditingstyle. after have deleted selected record sqlite ,

{ [self.tbllistprofiles reloaddata]; } 

it resizes image in remaining cells. resized image changes normal size after add new record sql , refresh using

{ [self.navigationcontroller popviewcontrolleranimated:yes]; } 

can please help?

regards

make sure delegate uitableview implements tableview:heightforrowatindexpath: or has rowheight property set correct size.

uitableviewdelegate reference

uitableview reference


Comments

Popular posts from this blog

SPSS keyboard combination alters encoding -

Add new record to the table by click on the button in Microsoft Access -

CSS3 Transition to highlight new elements created in JQuery -