2

私は2つの別々のプロジェクトを開発しています(iphoneとipad用)。デバイス カメラzxingは、ライブラリを使用してバーコードをスキャンし、そのテキストを に入力しますUILabel。iPhone ではすべて正常に動作していますが、iPad では zxing がバーコードを認識できません。これは私の起動コードです:

-(IBAction)scanWithCameraButtonPressed:(id)sender
{
    NSLog(@"scanWithCameraButtonPressed: called");


    ZXingWidgetController *widController = [[ZXingWidgetController alloc] initWithDelegate:self showCancel:YES OneDMode:NO];

    NSMutableSet *readers = [[NSMutableSet alloc ] init];

    //QRCodeReader* qrcodeReader = [[QRCodeReader alloc] init];
    //[readers addObject:qrcodeReader];

    //AztecReader *aztecReader = [[AztecReader alloc] init];
    //[readers addObject:aztecReader];

    //DataMatrixReader *dataMatrixReader=[[DataMatrixReader alloc] init];
    //[readers addObject:dataMatrixReader];

    //MultiFormatOneDReader *multiFormatOneDReader=[[MultiFormatOneDReader alloc] init];
    //[readers addObject:multiFormatOneDReader];

    MultiFormatUPCEANReader *multiFormatUPCEANReader=[[MultiFormatUPCEANReader alloc] init];
    [readers addObject:multiFormatUPCEANReader];


    widController.readers = readers;

    NSBundle *mainBundle = [NSBundle mainBundle];
    widController.soundToPlay =
    [NSURL fileURLWithPath:[mainBundle pathForResource:@"beep-beep" ofType:@"aiff"] isDirectory:NO];
    [self presentModalViewController:widController animated:YES];
}

iOS 5.0 を搭載した iphone 3gs でこれらのアプリケーションをテストしています <- iOS 5.1 を搭載した ipad2 で動作します <- 認識できません

すべての zxing リンク プロセスは同じで、コードも同じです。

助けてください、問題はどこにありますか?

4

0 に答える 0