FWQrcodeScanView

@interface FWQrcodeScanView : UIView

FWQrcodeScanView

  • 扫描样式,默认 ScanAnimationStyleDefault

    Declaration

    Objective-C

    @property (nonatomic) FWQrcodeScanAnimationStyle scanAnimationStyle;
  • 扫描线名,支持NSString和UIImage,默认无

    Declaration

    Objective-C

    @property (nonatomic, strong, nullable) id scanImageName;
  • 边框颜色,默认白色

    Declaration

    Objective-C

    @property (nonatomic, strong) UIColor *_Nonnull borderColor;
  • 边框frame,默认视图宽度*0.7,居中

    Declaration

    Objective-C

    @property (nonatomic) CGRect borderFrame;
  • 边框宽度,默认0.2f

    Declaration

    Objective-C

    @property (nonatomic) CGFloat borderWidth;
  • 边角位置,默认 CornerLocationDefault

    Declaration

    Objective-C

    @property (nonatomic) FWQrcodeCornerLocation cornerLocation;
  • 边角颜色,默认微信颜色

    Declaration

    Objective-C

    @property (nonatomic, strong) UIColor *_Nonnull cornerColor;
  • 边角宽度,默认 2.f

    Declaration

    Objective-C

    @property (nonatomic) CGFloat cornerWidth;
  • 边角长度,默认20.f

    Declaration

    Objective-C

    @property (nonatomic) CGFloat cornerLength;
  • 扫描区周边颜色的 alpha 值,默认 0.2f

    Declaration

    Objective-C

    @property (nonatomic) CGFloat backgroundAlpha;
  • 扫描线动画时间,默认 0.02s

    Declaration

    Objective-C

    @property (nonatomic) NSTimeInterval animationTimeInterval;
  • 添加定时器

    Declaration

    Objective-C

    - (void)addTimer;
  • 移除定时器

    Declaration

    Objective-C

    - (void)removeTimer;