Quote:
Originally Posted by StefanL
Hi,
I am getting nuts...
Same situation, same result...
I am trying to pass the Variable showData from the ModalViewController to the ShowViewController:
In the ModalViewController I declare:
Code:
controller.showData = [arryData objectAtIndex:indexPath.row];
Where arryData/showData is a NSMutableArray
When I set a Breakpoint I can see that controller.showData is of type NSCFArray (in the ModalViewController (the parent view).
The Breakpoint in the ShowViewController shows that showData is type of NSCFString...
Can please, please, please someone tell my what I am doing wrong?
Thanks for your help and assistance...
ModalViewController:
Code:
ShowViewController *controller = [[ShowViewController alloc] initWithNibName:@"ShowViewController" bundle:nil];
controller.showData = [[NSMutableArray alloc] initWithArray:arryData];
controller.showData = [arryData objectAtIndex:indexPath.row];
controller.delegate = self;
controller.modalTransitionStyle = UIModalTransitionStyleCoverVertical;
[self presentModalViewController:controller animated:YES];
[controller release];
controller = nil;
BR,
Stefan
|
I am not able to figure it out, but the NSMutableArray will be transformed into a NSCFString in my ShowViewController. As a workaround I am splitting the NSCFString into an Array...
Code:
NSArray *myWords = [showData componentsSeparatedByString:@","];
NSString *test = [myWords objectAtIndex:1];
BR,
Stefan