ZBar SDK get freeze while trying open the camera - ios7

I am Using ZBAR SDK in our app. but while trying open again and again then ZBarReaderView take more time to alloc in IOS 7 and it get Freeze.

ZBar memory leak on iOS?
Check this out. I've had this problem myself, and this topic pushed me into a solution.

Related

Block/Blur Screenshot IOS React-Native

Using React-Native I can not block the screenshot. I need to block or blur the screen for IOs. I've tried several things but I could not. Does anyone have a solution?
i think this libary should be helping https://github.com/hawkup/react-native-prevent-screenshot
Currently the best method to do prevention in IOS is using https://screenshieldkit.com/
However, I created a lib to block screenshot (on android) and detect screenshot action on IOS.
https://www.npmjs.com/package/react-native-screenshot-prevention

How to select images for iOS device library using DETOX?

How to select images for iOS device library using DETOX ?
Unfortunately this is something that the Detox are unable to implement. LeoNatan at Detox explains:
UIImagePickerController runs in a different process, thus we cannot control it
Your best bet is to mock the image picker API to just return some default image.
A quick search also turned up this post E2E: Select an image from a UIImagePickerController with Wix Detox, which as some work arounds that may work for iOS 9 and 10, but it is noted that from iOS 11 and onwards the UIImagePickerController is in a separate process and it cannot be accessed. Again mocking the API seems to be the general consensus.

Can watch from watchkit run videos?

Is there any way to run videos on Apple watch using Watchkit within my app? I tried finding any video player, but there was nothing. Thanks!
No - there's currently no way to run video on Apple Watch using Watchkit.
Depending on your desired outcome, you may be interested in the Animation capabilities of WatchKit. By adding a series of images into your Watch App bundle, WatchKit allows you to cycle through them at up to 120 fps or slower when fetching images from iPhone.
You could accomplish some pretty amazing results by animating images, although bare in mind image resources need to be kept to a minimum.
I suggest this tutorial on WatchKit Animation
and this Swift framework for rendering UIViews as image sequences in WatchKit.

Zbar not scanning after use of camera

I have an app that start with scanning a qr code.
After scanning if I use the camera to take picture and then go back to the
scanning view the scanning does not work.
I dont know the reason, issue is only in IOS7 devices, both iPad and iPhone.
I tried to setSymbology and called [readerView start], but it didn't work.
Please help.
I've found that IOS7 change the video mode for AVCaptureSession after you take a photo. Use this code before you call [readerView start].
if([readerView.session canSetSessionPreset: AVCaptureSessionPreset640x480])
readerView.session.sessionPreset = AVCaptureSessionPreset640x480;

What instrument should I use in Xcode to see FPS?

Some time ago I used instruments to see the FPS of an iPad application in Xcode 3. Now I'm using Xcode 4 and I can't find the correct instrument for viewing the FPS. What is it?
I was trying to view FPS on Simulator, on real device the list of instruments differs from the list of simulator ones. So I connect iPad to Mac, choose "Core Animation" instrument and get FPS.
in an OpenGL app you can use in Instrument -> Graphics -> OpenGL Es Driver