Zbar code ios SDK customisation - iphone

I am developing a barcode reader iphone application using zbar SDK.Its working fine for me.While scanning an QRcode it is detecting very fast and decoding it.The problem is , I need to add some for features for scanning functionality.This is my requirement - > While scanning ,if a QRcode is detected it should mark with some green dots.I saw this thing in an app which is using ZXING sdk. Is there any way I can include this features to my app which is using ZBAR SDK

Do you see the cameraOverlayView at all? set the background color to red or something: cameraOverlayView.backgroundColor = [UIColor redColor];
If you don't see the cameraOverlayView at all, then probably you need to set reader. showsZBarControls = NO which will disable the the default controls and use your custom overlay.
If you do see the cameraOverlayView, then the label is probably outside the bounds. Play around with the origin points and get it into position.
BTW I see you're not using ARC, make sure you release instructionLabel!

Related

scalable ios splash image in xamarin forms

I am working with xamarin forms and now I am seting the IOS splash image in the splash.storyboard... I followed some tutorials and I setted "W any x H any" and "generic" in the configurations required...The image appears, it is a background image. The problems is: If I select the GENERIC option, the image is too large and in the iphone it doesnt seem good...I need a Scalable Splah image, how can I do that?
I am using windows for it...but I can use a mac too.
You can add an ImageView into the ViewController instead of setting the BackgroundImage of the root view. With this, you can have the flexibility to set constraint according to your needs. You can learn more about auto layout HERE.
In addition, you can also set image with different resolution in iPhone and iPad inside your asset catalog.

Zbar camera view border color

I'm using Zbar qr and bar code recongnition tool in my app.
I've recompiled the framework to support iPad screen size as well, but now I get is the redish and bluish rectangle around camera view.
Any ideas how get reed of it ?
Have you tried reader.cameraOverlayView = nil ?
I guess you have already read the documentation, but if you did not, here is the link : ZBar documentation
Actually I've fixed this in the sources of Zbar, recompiled and used my own build of library...

May I handle moving icon of my iPhone application

Is it possible to handle the animation of moving icons in an iPhone application? If so, how?
As far as I know, you cannot. The icon motion animation is generated by iOS based on the still icon, and you have no control of it.
I think without .gif image you can not make animated icon and ios will not support that so you have no control on it.

Setting UIButton stretched background images in Interface Builder (XCode 4)

I'm trying to set up an UIButton background using a stretchable image in Interface Builder. Button is configured as "custom" and I have assigned a background image to it. The view mode is set to "Scale to Fill", but when I set any value in "Stretching" area it doesn't seems to do anything.
I have tried doing it programmatically and it works using the UIImage's stretchableImageWithLeftCapWidth:topCapHeight: message, but its use is not recommended by Apple.
Is there any way to make it work from Interface Builder?
Unfortunately, you can't use stretchable/resizable images in the current version of Xcode 4. You have to do it programmatically.
Assuming that you are talking about iOS 5: the SDK is still under NDA for a few days, so I can't be more specific. But just as a hint:
Apple doesn't discourage the use of stretchableImageWithLeftCapWidth:topCapHeight:. If you look at the documentation (iOS 5 version) of this method again, you will find an answer there.

How to customize zbar sdk's UIImagePickerView?

Iam working on barcode reder app which reads barcode and display it's data using zbar Sdk.
Now client wants to customize the square bracket which appears when camera auto focus the barcode,
my question is that is it possible to customize it,
Thanks
It is possible to customize it, but it's not very documented. Afaik you only have APIs for setting its color and so on. If you want to do further customization, you'll need to re-implement that part yourself.
The code for the built-in tracking can be found here: http://zbar.hg.sourceforge.net/hgweb/zbar/zbar/file/443c9f0e3c8f/iphone
This will disable the autofocus property in zbar sdk
reader.tracksSymbols=FALSE;