ios - Data between selected row to Uiviewcontroller containing a tableview -
i tried pass info between selected row uitableview within of uiview . have void prepare segue in in selected row, query images phone call pffile save nsdata within of image. stucked in viewcontroller contains uitableview, because image not save in array having great difficulty show info in viewcontroller help. code prepare segue pass data.
nsindexpath*indexpath=[self.tableview indexpathforselectedrow]; newviewcontroller *destination=(newviewcontroller *)segue.destinationviewcontroller; pfobject *object=[self.arrayusers objectatindex:indexpath.row]; pfquery *query=[pfquery querywithclassname:@"image"]; [query getfirstobjectinbackgroundwithblock:^(pfobject *object, nserror *error) { if(object) { pffile *file=[object objectforkey:@"imagefile"]; [file getdatainbackgroundwithblock:^(nsdata *data, nserror *error) { if(data) { uiimage *image=[uiimage imagewithdata:data]; } }]; } }];
ios objective-c uitableview
No comments:
Post a Comment