ios - PFImageView not displaying on screen -


i having trouble parse's pfimageview in ios app.

i have custom uitableviewcell of class mainprofiletableviewcell in uitableview. uitableviewcell has uiimageview property called profilepicture. trying use parse's pfimageview, have download current user's profile picture, , have uitableviewcell's profilepicture pfimageview (i using storyboards).

the issue when run app , go uitableview happening, there nothing there profile picture should be. help?

(by way, uitableview has 1 cell right now, custom uitableviewcell.)

 - (uitableviewcell *)tableview:(uitableview *)tableview cellforrowatindexpath:(nsindexpath *)indexpath {      mainprofiletableviewcell *cell = [tableview dequeuereusablecellwithidentifier:@"mainprofile" forindexpath:indexpath];      cell.selectionstyle = uitableviewcellselectionstylenone;      pfimageview *profileimage = [[pfimageview alloc] init];     profileimage.image = [uiimage imagenamed:@"lincoln"];     profileimage.file = currentuser[@"profilepicture"];     [profileimage loadinbackground];      cell.profilepicture = profileimage;     cell.profilepicture.layer.cornerradius = cell.imageview.frame.size.width / 2;     cell.profilepicture.clipstobounds = yes;      [self.view addsubview:cell.profilepicture];      return cell; } 

other useful information: uiimageview profileimage connected uiimageview in storyboard.

i solved it: added

        profileimage.frame = cell.profilepicture.frame; 

before calling loadinbackground method.


Comments

Popular posts from this blog

PHP DOM loadHTML() method unusual warning -

python - How to create jsonb index using GIN on SQLAlchemy? -

c# - TransactionScope not rolling back although no complete() is called -