我从上一个视图控制器获取标签并在下一个视图控制器中显示该标签,但我想让它们在文本字段中编辑,我将这些标签设置为已启用用户交互,但它仍然无法正常工作
-(void)setDataOnForm
{
nameLbl.text=name;
emailLbl.text=email;
imageSelect.image=[MyCommonFunctions getImageFromDocuments:image];
NSLog(@"image %@", image);
}
这是我以前的视图控制器
- (void)tableView:(UITableView *)tableView didSelectRowAtIndexPath:(NSIndexPath *)indexPath
{
user *worddc=[dataArray objectAtIndex:[indexPath row]];
profileVC *pvc =[[profileVC alloc]initWithNibName:@"profileVC" bundle:nil];
[self.navigationController pushViewController:pvc animated:YES];
pvc.getid=worddc.user_id;
pvc.name=worddc.name;
pvc.email=worddc.email;
pvc.image=worddc.image;
[pvc setDataOnForm];
}