Here i am trying to give the value of imageArray in completion handler.
Here i am trying to get the objects out of my imageArray(arrayObject) and storing the object in another array named arrayForObject using inserObject AtIndex method....when i try to loop the arrayForObject array after inserting , i cannot get anyting out from the arrayForObject array...
please could any one helpme.....help will be appriciated....i hope some one will help me to fix the problem...
Code:
-(IBAction)back {
completionHandler(imageArray);
[completionHandler release];
[self.parentViewController dismissModalViewControllerAnimated:YES];
}
Here i am trying to get the objects out of my imageArray(arrayObject) and storing the object in another array named arrayForObject using inserObject AtIndex method....when i try to loop the arrayForObject array after inserting , i cannot get anyting out from the arrayForObject array...
Code:
-(IBAction)grabImage {
ImagePicker *img = [[ImagePicker alloc] initWithCompletionHandler:^(NSMutableArray *arrayObject) {
for (int i = 0; i<[arrayObject count]; i++) {
ImageData *imgData = [arrayObject objectAtIndex:i];
NSLog(@"date is %@",imgData.date);
[arrayForObjects insertObject:imgData atIndex:0];
}
[imagesTable reloadData];
}];
[self presentModalViewController:img animated:YES];
[img release];
}
please could any one helpme.....help will be appriciated....i hope some one will help me to fix the problem...
Last edited by a moderator: