Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Change label text "Position ID card in this Frame" #83

Open
mladilav opened this issue Sep 25, 2018 · 5 comments
Open

Change label text "Position ID card in this Frame" #83

mladilav opened this issue Sep 25, 2018 · 5 comments
Labels

Comments

@mladilav
Copy link

Hello. We use BlinkID 1.5.0v. How do I change the text under the frame? I mean @"Position ID card in this Frame"

@jcular jcular self-assigned this Sep 26, 2018
@jcular
Copy link
Contributor

jcular commented Sep 26, 2018

Hi @mladilav,

v1.5.0 uses old API and unfortunately changing that text requires writing some native code on iOS.
Open CDVBlinkIdScanner.m add the following below #import<MicroBlink/MicroBlink.h>:

@interface CustomIDCardOverlayViewController : PPIDCardOverlayViewController

@end

@implementation CustomIDCardOverlayViewController

- (void)viewDidLoad {
    [super viewDidLoad];
    self.idCardSubview.tooltipLabel.text = @"your text";
}

@end

In the same file replace:

UIViewController<PPScanningViewController> *scanningViewController = [PPViewControllerFactory cameraViewControllerWithDelegate:self coordinator:coordinator error:nil];

with:

CustomIDCardOverlayViewController *idCardOverlay = [[CustomIDCardOverlayViewController alloc] init];
UIViewController<PPScanningViewController> *scanningViewController = [PPViewControllerFactory cameraViewControllerWithDelegate:self overlayViewController:idCardOverlay coordinator:coordinator error:nil];

Kind regards,
Jure

@mladilav
Copy link
Author

Hi @mladilav,

v1.5.0 uses old API and unfortunately changing that text requires writing some native code on iOS.
Open CDVBlinkIdScanner.m add the following below #import<MicroBlink/MicroBlink.h>:

@interface CustomIDCardOverlayViewController : PPIDCardOverlayViewController

@end

@implementation CustomIDCardOverlayViewController

- (void)viewDidLoad {
    [super viewDidLoad];
    self.idCardSubview.tooltipLabel.text = @"your text";
}

@end

In the same file replace:

UIViewController<PPScanningViewController> *scanningViewController = [PPViewControllerFactory cameraViewControllerWithDelegate:self coordinator:coordinator error:nil];

with:

CustomIDCardOverlayViewController *idCardOverlay = [[CustomIDCardOverlayViewController alloc] init];
UIViewController<PPScanningViewController> *scanningViewController = [PPViewControllerFactory cameraViewControllerWithDelegate:self overlayViewController:idCardOverlay coordinator:coordinator error:nil];

Kind regards,
Jure

Hello!
Thanks for your answer! But I have one more question:
Is it possible to get the text @"your text"; from en.strings?

@jcular
Copy link
Contributor

jcular commented Sep 27, 2018

Instead of @"your text" you can set it to MB_LOCALIZED(@"position_tooltip"); and add "position_tooltip" key and it's value inside en.strings file.

Kind regards,
Jure

@mladilav
Copy link
Author

mladilav commented May 21, 2019

Hello @jcular !

I have a question. How I can set the language in my app for new microblink (4.7.0) ?

@Cerovec
Copy link
Contributor

Cerovec commented Mar 26, 2020

Hi @mladilav,

sorry for the delay with the answer. We did, however, check BlinkID v5.3 (our latest release), and the feature to set the language. It seems like for some reason this isn't working in the latest release, so we're classifying this issue as a bug and we will check this before the next release.

Thanks,
Jurica.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

3 participants