How do I check 开发者_如何学JAVAif the iPod supports audio recording using Cocoa API?
If you know what devices support audio recording (iPhone always does for example) you can use methods from this question:
Determine device (iPhone, iPod Touch) with iPhone SDK
Actual testing for input device connected can be done by Audio Session Services shown in this solution:
Detecting iPhone/iPod Touch Accessories
精彩评论