0
.text
속성을 다른 viewController 클래스에 설정하려고 시도했지만 설정되지 않습니다. 어떻게 segue를 사용하지 않고도이 결과를 얻을 수 있습니까?presentViewController 메서드를 사용하여 다른 VC의 속성을 설정하십시오.
AccountTypeVC *vc = (AccountTypeVC *)[mainStoryboard instantiateViewControllerWithIdentifier:@"AccountTypeVC"];
AccountTypeVC.serviceTitle.text = [tableData objectAtIndex:indexPath.row];
[self presentViewController:vc animated:NO completion:nil];
그것은 instantiateViewControllerWithIdentifier
결국 UI 요소가 초기화되었는지 필요 없어 .h
@property (strong, nonatomic) IBOutlet UILabel *serviceTitle;
이제 NSString을 NSMutableArray로 변경했는데 왜 작동하지 않습니까? – AsimRazaKhan