I'm programatically creating x number of UIPicker instances and I want to retrieve the images picked using the didFinishPicking method. I therefore need a way to uniquely identify each picker instance. I'm trying to name each picker in the format picker# where # is the number of the picker instance. But I can't seem to figure out how to name the picker according to an NSString. What I'm basically asking is in the code below how can I name the UIImagePickerController with the NSString pickerName?
-(void) loadLibrary:(UIButton *)sender{
NSString *pickerName = [NSString stringWithFormat:@"picker%d",pickerCount];
UIImagePickerController *picker = [[UIImagePickerController alloc] init];
picker.delegate = self;
picker.allowsEditing = YES;
picker.sourceType = UIImagePickerControllerSourceTypePhotoLibrary;
[self presentViewController:picker animated:YES completion:NULL];
}