Become a MacRumors Supporter for $50/year with no ads, ability to filter front page stories, and private forums.
Status
Not open for further replies.

thangiavel

macrumors newbie
Original poster
Sep 5, 2011
13
0
Here i am trying to give the value of imageArray in completion handler.
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:
Status
Not open for further replies.
Register on MacRumors! This sidebar will go away, and you'll see fewer ads.