GithubHelp home page GithubHelp logo

Comments (5)

myang-git avatar myang-git commented on August 28, 2024

Hi, it works fine on my iPod Touch running iOS 4.3.5. Can you provide more detail about your test enviroment?

from qr-code-encoder-for-objective-c.

freyue avatar freyue commented on August 28, 2024

I am using iPod Touch running 4.3.3 and iphone with ios 4.2, both can't work, how can I upload my test project to this website?
a view-based application and import all the encoder source code into it, very simple.
this is the source code of response function to a button:

  • (IBAction)GenerateQRCode:(id)sender
    {
    NSString *text = textView.text;

    int qrcodeImageDimension = 250;

    DataMatrix* qrMatrix = [QREncoder encodeWithECLevel:QR_ECLEVEL_AUTO version:QR_VERSION_AUTO string:text];

    //then render the matrix
    UIImage* qrcodeImage = [QREncoder renderDataMatrix:qrMatrix imageDimension:qrcodeImageDimension];

    [imageView setImage:qrcodeImage];
    [imageView sizeToFit];

}

or could you tell me how you implement this exactly, thanks!

from qr-code-encoder-for-objective-c.

myang-git avatar myang-git commented on August 28, 2024

Hello, I can only (kind of) reproduce the problem by encoding a very large piece of text. You may need to check the size of the text. Also try removing the call [imageView sizeToFit]. You can send me the entire project so I can take a look. Thanks.

from qr-code-encoder-for-objective-c.

freyue avatar freyue commented on August 28, 2024

I use CGBitmapContextCreateImage to create the CGImageRef in renderDataMatrix, and everything works fine now, thanks a lot!
in my device it always be a black image with the original code, no matter with the text size, have no idea :(

from qr-code-encoder-for-objective-c.

myang-git avatar myang-git commented on August 28, 2024

That's interesting.. I will make a change to the encode to use the mentioned method if it's more compatible. Good to know it's now working on your device. Thanks.

from qr-code-encoder-for-objective-c.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.