Hi folks,
I have serious problems passing a NSMutableArray between 2 Views.
the Array will be sent via:
and received:
In the View where the NSMutableArray should be received, I have made
@property (retain, nonatomic)NSMutableArray *showData;
@synthesize showData;
The NSLog - displays Data - but not in Form of NSMutableArray but in in Form of NSCFString... I could now split this string into a NSMutableArray again (with componentsseparated...) but I will get an Warning that "showData" (NOW it is NSMutableArray) may not recognise (componentsSeparated...)
Does anybody has a clue why this strange behavier happens?
Thanks for your Advice!
Stefan
I have serious problems passing a NSMutableArray between 2 Views.
the Array will be sent via:
Code:
controller.showData = [arryData objectAtIndex:indexPath.row];
controller.delegate = self;
controller.modalTransitionStyle = UIModalTransitionStyleCoverVertical;
[self presentModalViewController:controller animated:YES];
[controller release];
controller = nil
and received:
Code:
-(void)viewDidLoad {
NSLog(@"Data in Array: %@", showData);
}
In the View where the NSMutableArray should be received, I have made
@property (retain, nonatomic)NSMutableArray *showData;
@synthesize showData;
The NSLog - displays Data - but not in Form of NSMutableArray but in in Form of NSCFString... I could now split this string into a NSMutableArray again (with componentsseparated...) but I will get an Warning that "showData" (NOW it is NSMutableArray) may not recognise (componentsSeparated...)
Does anybody has a clue why this strange behavier happens?
Thanks for your Advice!
Stefan