id callbackTarget;
SEL callbackSelectorSuccess;
SEL callbackSelectorFailure;
- NSString *contentPath;
NSURL *contentURL;
- NSString *content;
}
@property (nonatomic, retain) id callbackTarget;
@property (nonatomic, readonly) UIWebView *webView;
-@property (nonatomic, copy) NSString *contentPath;
@property (nonatomic, retain) NSURL *contentURL;
-@property (nonatomic, copy) NSString *content;
- (id)initWithMessageFilename:(NSString *)filename target:(id)cbt onSuccess:(SEL)ss onFailure:(SEL)fs;
@synthesize callbackTarget;
@synthesize callbackSelectorSuccess;
@synthesize callbackSelectorFailure;
-@synthesize contentPath;
@synthesize contentURL;
-@synthesize content;
- (UIWebView *)webView {
return (UIWebView *)self.view;
}
- (id)initWithMessageFilename:(NSString *)filename
- target:(id)cbt onSuccess:(SEL)ss onFailure:(SEL)fs {
+ target:(id)cbt
+ onSuccess:(SEL)ss
+ onFailure:(SEL)fs {
if (self = [super initWithNibName:@"Message" bundle:nil]) {
self.callbackTarget = cbt;
self.callbackSelectorSuccess = ss;
self.callbackSelectorFailure = fs;
- self.contentPath = [[NSBundle mainBundle] pathForResource:filename
- ofType:@"html"];
- self.contentURL = [NSURL fileURLWithPath:self.contentPath];
- self.content = [NSString stringWithContentsOfFile:self.contentPath
- encoding:NSUTF8StringEncoding
- error:NULL];
+ self.contentURL = [NSURL fileURLWithPath:[[NSBundle mainBundle] pathForResource:filename
+ ofType:@"html"]];
}
return self;
}
- (void)loadView {
[super loadView];
self.webView.delegate = self;
- [self.webView loadHTMLString:self.content baseURL:self.contentURL];
+ [self.webView loadRequest:[NSURLRequest requestWithURL:self.contentURL]];
}
- (void)viewDidLoad {
<body style="background-color: black; color: white; font-family: sans-serif; text-align: center;">
<p style="font-weight: bold;">
<img style="width: 128px; height: 128px;" alt="ZXing Project Logo" src="../zxing-icon-128.png"></p>
-<p style="font-weight: bold;">Strichcodes</p>
+<h2>Strichcodes</h2>
+<p>Version 1.0</p>
<p>© 2008 The <a href="http://code.google.com/p/zxing/">ZXing</a>
Authors<br>
</p>
+<p>
+<b>Unterstützte Strichcode-Formate:</b>
+</p>
+<p>
+QR Code<br/>
+</p>
</body></html>
\ No newline at end of file
<body style="background-color: black; color: white; font-family: sans-serif; text-align: center;">
<p style="font-weight: bold;">
<img style="width: 128px; height: 128px;" alt="ZXing Project Logo" src="../zxing-icon-128.png"></p>
-<p style="font-weight: bold;">Barcodes</p>
+<h2>Barcodes</h2>
+<p>Version 1.0</p>
<p>© 2008 The <a href="http://code.google.com/p/zxing/">ZXing</a>
Authors<br>
</p>
+<p>
+<b>Supported barcode formats:</b>
+</p>
+<p>
+QR Code<br/>
+</p>
</body></html>
\ No newline at end of file
<body style="background-color: black; color: white; font-family: sans-serif; text-align: center;">
<p style="font-weight: bold;">
<img style="width: 128px; height: 128px;" alt="ZXing Project Logo" src="../zxing-icon-128.png"></p>
-<p style="font-weight: bold;">Streckkoder</p>
+<h2>Streckkoder</h2>
+<p>Version 1.0</p>
<p>© 2008 The <a href="http://code.google.com/p/zxing/">ZXing</a>
Authors<br>
</p>
+<p>
+<b>Stödda streckkods-format:</b>
+</p>
+<p>
+QR Code<br/>
+</p>
</body></html>
\ No newline at end of file