Skip to content

meliuxudong/MCMachineCode

 
 

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

12 Commits
 
 
 
 
 
 
 
 

Repository files navigation

MCMachineCode

A IOS two-dimensional code and bar code scanning tools to support most types of common

MCMachineCode can allow you to quickly add scan code to your project, the use of simple and convenient, currently provides four types of scan code style, please look at the picture.

Alt    Alt    Alt    

Usage

// type 0 let machineCodeVc = MCMachineCodeViewController(lineType: LineType.LineScan, moveType: MoveType.Default) self.navigationController?.pushViewController(machineCodeVc, animated: true) machineCodeVc.didGetMachineCode = { code in self.resultLabel.text = code } // type 1 let machineCodeVc = MCMachineCodeViewController(lineType: LineType.Grid, moveType: MoveType.Default) self.navigationController?.pushViewController(machineCodeVc, animated: true) machineCodeVc.didGetMachineCode = { code in self.resultLabel.text = code } // type 2 let machineCodeVc = MCMachineCodeViewController(lineType: LineType.Default, moveType: MoveType.Default) self.navigationController?.pushViewController(machineCodeVc, animated: true) machineCodeVc.didGetMachineCode = { code in self.resultLabel.text = code }

Installation

Manually

  1. Download all the files in the MCMachineCodeDemo subdirectory.
  2. Add the source files to your Xcode project.

Author

M.C, chaoma0609@gmail.com

If you feel helpful, please point a Star~ thank you.. Please contact me with any questions.

About

Powerful simple sweep code tool

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

 
 
 

Contributors

Languages

  • Swift 100.0%