Comments (5)
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.
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.
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.
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.
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)
- QRCode generation without the white border HOT 4
- High Resolution Image HOT 1
- how use in ios5 with storyboard HOT 7
- Did this support Chinese Encode HOT 1
- Build Failed because of QR_Encode.h HOT 1
- running the application HOT 1
- expected '=', ',', ';', 'asm' or '__attribute__' before 'class' HOT 3
- Add this library to the main CoocaPods repo. . . HOT 1
- Mac cocoapod HOT 1
- C++ is great, but mass renaming is a quite awkward. HOT 4
- Update the ReadMe to let people know the library can be installed via CocoaPods
- Other Linker Flags HOT 1
- Issues with Xcode 4.2 ?? HOT 2
- iOS 8 Support HOT 4
- Linking Errors after using Pods HOT 2
- Getting errors in HOT 13
- Big padding when 5000 characters or more HOT 1
- Licence HOT 3
- armv6 architecture issue HOT 5
- Semantic Issue HOT 1
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
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.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from qr-code-encoder-for-objective-c.