zxingify / zxingify-objc

An Objective-C Port of ZXing
Apache License 2.0
3.06k stars 752 forks source link

ZXEncodeHints`s property margin do not work #383

Closed chaoxcheng closed 6 years ago

chaoxcheng commented 6 years ago

i set margin property in order to remove the white edge, but it not work

benjohnde commented 6 years ago

Can you give some more information on that, maybe example code?

benjohnde commented 5 years ago

It should work, but you need to use it as following:

ZXEncodeHints *hints = [ZXEncodeHints hints];
hints.margin = [NSNumber numberWithInt:0];