I have to call a value from the first array to the next. But I am getting this message on declaring the array:-
SecondViewController *second = [[SecondViewController alloc] init];
NSMutableArray *_iArray = [second initWithMethod:@"jjsh" :@"jkhfhads"];
How can I rectify it to stop my app from crashing ?
initWithMethod: this method has return type either (id) which will say that it is an initializer of SecondViewController. if your are going to inialize array. then useNSMutableArrayreturn type of the methodinitWithMethod