Quote:
Originally Posted by seb_bue
And check, if showData is declared as a NSArray or NSMutableArray.
Regarding the error message, it is declared as NSString, which is wrong.
Furthermore check, if changeProductText is called before viewDidLoad. Otherwise you will also get an error, if the array is undeclared.
|
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