0

UIImagePickerController から複数の画像を選択するにはどうすればよいですか?

4

1 に答える 1

1

APIを介して直接行うことはできないと思います。ただし、ピッカーを開いたままにして、コールバックで画像のリストを作成することもできます。

- (void) imagePickerController: (UIImagePickerController*) picker
    didFinishPickingMediaWithInfo: (NSDictionary*) info
{
    [images addObject:[info objectForKey:UIImagePickerControllerOriginalImage]];
    // There has to be some exit condition,
    // otherwise the user would pick forever.
    if ([images count] == 3)
        [self dismissModalViewControllerAnimated:YES];
}
于 2009-09-08T12:56:44.347 に答える