This question is locked. New answers and comments are not allowed.
Hi,
I'm fetching business data from a server asynchronously ans thus I don't yet have access to the instance of a business object in viewDidLoad. So my setup code looks roughly like the following:
TKDataForm *dataForm = [[TKDataForm alloc] initWithFrame:self.view.bounds];
dataForm.delegate = self;
[self.view addSubview:dataForm];
self.dataSource = (TKDataFormEntityDataSource *)dataForm.dataSource;
[myDataSource executeQueryOnCompletion:^(id value) {
self.dataSource.selectedObject = value;
}];
However, the problem is that no form will displayed whatsoever. The screen just stays empty. This if even reproducible by changing the example from the documentation such that the business object is set in viewDidAppear: instead of viewDidLoad:
- (void)viewDidAppear:(BOOL)animated {
[super viewDidAppear:animated];
self.dataSource.selectedObject = [PersonalInfo new];
}
So it looks like the business object has to be set in viewDidLoad by all means. This isn't very flexible, are there any ways around this limitation?