开发者

UIGetScreenImage the app is not getting the approval due to this method

开发者 https://www.devze.com 2023-01-17 07:02 出处:网络
HI i am using zxing API into my application and it says that the applicationcannot be posted to the App Store because it is using private or undocumented APIs:

HI i am using zxing API into my application and it says that the application cannot be posted to the App Store because it is using private or undocumented APIs:

Private Symbol References UIGetScreenImage

c开发者_C百科an somebody help me out as soon as possible


ZXing 1.6, which was released yesterday, has switched to the AV Foundation classes of iOS 4. It's the real-time scanning approach that's allowed by Apple.

Update:

ZXing 1.6 comes with three iPhone projects:

  • Barcodes is the original iPhone app. It's still using the UIGetScreenImage API.
  • ZXingWidget is a library that you can include into your own app. It uses the new AV Foundation classes.
  • ScanTest is a sample app using ZXingWidget

So the way to go is to use the ZXingWidget.


ZXing is displaying the feed from the camera live on the screen, and using UIGetScreenImage to repeatedly capture the resulting image without the user having to do anything. (This is a very nice user experience because the user doesn't have to press a button to take a picture of the barcode; the app just keeps taking pictures over and over until it gets one that works.)

This technique used to be perfectly fine, but Apple has recently changed their policy and banned the use of UIGetScreenImage. In light of Apple's change in policy, your best choice now is to make it so the user has to press a button to photograph the barcode manually.

Since ZXing is open-source, this should be a simple matter of changing a few lines of code to now use [UIImagePickerController takePicture].

0

精彩评论

暂无评论...
验证码 换一张
取 消

关注公众号