1
output.videoSettings = [NSDictionary dictionaryWithObject:
    [NSNumber numberWithInt:kCVPixelFormatType_32BGRA]
    forKey:(id)kCVPixelBufferPixelFormatTypeKey];

この特定の行でこのエラーが発生します

No known class method for selector "dictionaryWithObject:forKey:

このエラーの理由はありますか?

4

1 に答える 1

3

これを試して:

videoOutput.videoSettings = [NSDictionary dictionaryWithObjectsAndKeys:[NSNumber numberWithUnsignedInt:kCVPixelFormatType_32BGRA], (id)kCVPixelBufferPixelFormatTypeKey,
                             nil];
于 2012-06-11T13:55:24.840 に答える