[iphone][barcodes] added info view. Done button to dismiss view not yet added

git-svn-id: https://zxing.googlecode.com/svn/trunk@1650 59b500cc-1b3d-0410-9834-0bbf25fbcc57
This commit is contained in:
rpechayr 2010-11-14 18:09:37 +00:00
parent ab6b4908f4
commit 1b21ed218c
9 changed files with 259 additions and 110 deletions

View file

@ -22,20 +22,21 @@
#import <UIKit/UIKit.h> #import <UIKit/UIKit.h>
@interface MessageViewController : UIViewController <UIWebViewDelegate> { @interface MessageViewController : UIViewController <UIWebViewDelegate> {
id callbackTarget; // id callbackTarget;
SEL callbackSelectorSuccess; // SEL callbackSelectorSuccess;
SEL callbackSelectorFailure; // SEL callbackSelectorFailure;
NSURL *contentURL; NSURL *contentURL;
IBOutlet UIWebView *webView;
} }
@property (nonatomic, retain) id callbackTarget; //@property (nonatomic, retain) id callbackTarget;
@property (nonatomic, assign) SEL callbackSelectorSuccess; //@property (nonatomic, assign) SEL callbackSelectorSuccess;
@property (nonatomic, assign) SEL callbackSelectorFailure; //@property (nonatomic, assign) SEL callbackSelectorFailure;
@property (nonatomic, readonly) UIWebView *webView; @property (nonatomic,retain) IBOutlet UIWebView *webView;
@property (nonatomic, retain) NSURL *contentURL; @property (nonatomic, retain) NSURL *contentURL;
- (id)initWithMessageFilename:(NSString *)filename target:(id)cbt onSuccess:(SEL)ss onFailure:(SEL)fs; - (id)initWithMessageFilename:(NSString *)filename;
@end @end

View file

@ -24,23 +24,18 @@
@implementation MessageViewController @implementation MessageViewController
@synthesize callbackTarget; //@synthesize callbackTarget;
@synthesize callbackSelectorSuccess; //@synthesize callbackSelectorSuccess;
@synthesize callbackSelectorFailure; //@synthesize callbackSelectorFailure;
@synthesize contentURL; @synthesize contentURL;
@synthesize webView;
- (UIWebView *)webView { //- (UIWebView *)webView {
return (UIWebView *)self.view; // return (UIWebView *)self.view;
} //}
- (id)initWithMessageFilename:(NSString *)filename - (id)initWithMessageFilename:(NSString *)filename {
target:(id)cbt
onSuccess:(SEL)ss
onFailure:(SEL)fs {
if ((self = [super initWithNibName:@"Message" bundle:nil])) { if ((self = [super initWithNibName:@"Message" bundle:nil])) {
self.callbackTarget = cbt;
self.callbackSelectorSuccess = ss;
self.callbackSelectorFailure = fs;
self.contentURL = [NSURL fileURLWithPath:[[NSBundle mainBundle] pathForResource:filename self.contentURL = [NSURL fileURLWithPath:[[NSBundle mainBundle] pathForResource:filename
ofType:@"html"]]; ofType:@"html"]];
} }
@ -70,6 +65,7 @@
- (void)dealloc { - (void)dealloc {
[webView release];
[super dealloc]; [super dealloc];
} }
@ -89,19 +85,17 @@
} else { } else {
// any other url:s are handed off to the system // any other url:s are handed off to the system
NSURL *url = [[request URL] retain]; NSURL *url = [[request URL] retain];
[self performSelectorOnMainThread:@selector(openURL:) withObject:url waitUntilDone:false]; [self performSelectorOnMainThread:@selector(openURL:) withObject:url waitUntilDone:NO];
return false; return NO;
} }
} }
- (void)webView:(UIWebView *)webView didFailLoadWithError:(NSError *)error { - (void)webView:(UIWebView *)webView didFailLoadWithError:(NSError *)error {
NSLog(@"failed to load content, performing failure callback"); NSLog(@"failed to load content, performing failure callback");
[self.callbackTarget performSelector:self.callbackSelectorFailure withObject:self afterDelay:0.0];
} }
- (void)webViewDidFinishLoad:(UIWebView *)webView { - (void)webViewDidFinishLoad:(UIWebView *)webView {
NSLog(@"finished loading content, performing success callback"); NSLog(@"finished loading content, performing success callback");
[self.callbackTarget performSelector:self.callbackSelectorSuccess withObject:self afterDelay:0.0];
} }

View file

@ -22,6 +22,8 @@
@property (nonatomic,assign) ParsedResult *result; @property (nonatomic,assign) ParsedResult *result;
- (IBAction)scan:(id)sender; - (IBAction)scan:(id)sender;
- (IBAction)info:(id)sender;
- (void)zxingController:(ZXingWidgetController*)controller didScanResult:(NSString *)result; - (void)zxingController:(ZXingWidgetController*)controller didScanResult:(NSString *)result;
- (void)zxingControllerDidCancel:(ZXingWidgetController*)controller; - (void)zxingControllerDidCancel:(ZXingWidgetController*)controller;
- (void)performResultAction; - (void)performResultAction;

View file

@ -11,6 +11,7 @@
#import <UniversalResultParser.h> #import <UniversalResultParser.h>
#import <ParsedResult.h> #import <ParsedResult.h>
#import <ResultAction.h> #import <ResultAction.h>
#import "MessageViewController.h"
@implementation ZXMainViewController @implementation ZXMainViewController
@synthesize resultParser; @synthesize resultParser;
@ -61,8 +62,26 @@
[widController release]; [widController release];
} }
- (IBAction) info:(id)sender { - (void) messageReady:(id)sender {
MessageViewController *messageController = sender;
[self presentModalViewController:messageController animated:YES];
[messageController release];
}
- (void) messageFailed:(id)sender {
MessageViewController *messageController = sender;
NSLog(@"Failed to load message!");
[messageController release];
}
- (IBAction)info:(id)sender {
MessageViewController *aboutController =
[[MessageViewController alloc] initWithMessageFilename:@"About"
/* target:self
onSuccess:@selector(messageReady:)
onFailure:@selector(messageFailed:)*/];
[self presentModalViewController:aboutController animated:YES];
[aboutController release];
} }
- (void)didReceiveMemoryWarning { - (void)didReceiveMemoryWarning {

View file

@ -42,7 +42,7 @@
<int key="NSvFlags">274</int> <int key="NSvFlags">274</int>
<object class="NSMutableArray" key="NSSubviews"> <object class="NSMutableArray" key="NSSubviews">
<bool key="EncodedWithXMLCoder">YES</bool> <bool key="EncodedWithXMLCoder">YES</bool>
<object class="IBUIImageView" id="243359752"> <object class="IBUIImageView" id="19193094">
<reference key="NSNextResponder" ref="191373211"/> <reference key="NSNextResponder" ref="191373211"/>
<int key="NSvFlags">274</int> <int key="NSvFlags">274</int>
<string key="NSFrame">{{96, 81}, {128, 128}}</string> <string key="NSFrame">{{96, 81}, {128, 128}}</string>
@ -54,7 +54,7 @@
<string key="NSResourceName">ZxingLarge.png</string> <string key="NSResourceName">ZxingLarge.png</string>
</object> </object>
</object> </object>
<object class="IBUILabel" id="501669536"> <object class="IBUILabel" id="1000547791">
<reference key="NSNextResponder" ref="191373211"/> <reference key="NSNextResponder" ref="191373211"/>
<int key="NSvFlags">292</int> <int key="NSvFlags">292</int>
<string key="NSFrame">{{68, 30}, {183, 21}}</string> <string key="NSFrame">{{68, 30}, {183, 21}}</string>
@ -74,14 +74,14 @@
<int key="NSColorSpace">1</int> <int key="NSColorSpace">1</int>
<bytes key="NSRGB">MCAwIDAAA</bytes> <bytes key="NSRGB">MCAwIDAAA</bytes>
</object> </object>
<object class="NSColor" key="IBUIHighlightedColor" id="126998549"> <object class="NSColor" key="IBUIHighlightedColor" id="85817449">
<int key="NSColorSpace">3</int> <int key="NSColorSpace">3</int>
<bytes key="NSWhite">MQA</bytes> <bytes key="NSWhite">MQA</bytes>
</object> </object>
<int key="IBUIBaselineAdjustment">1</int> <int key="IBUIBaselineAdjustment">1</int>
<float key="IBUIMinimumFontSize">10</float> <float key="IBUIMinimumFontSize">10</float>
</object> </object>
<object class="IBUIButton" id="804137716"> <object class="IBUIButton" id="1005126370">
<reference key="NSNextResponder" ref="191373211"/> <reference key="NSNextResponder" ref="191373211"/>
<int key="NSvFlags">292</int> <int key="NSvFlags">292</int>
<string key="NSFrame">{{96, 240}, {128, 61}}</string> <string key="NSFrame">{{96, 240}, {128, 61}}</string>
@ -90,24 +90,24 @@
<string key="targetRuntimeIdentifier">IBCocoaTouchFramework</string> <string key="targetRuntimeIdentifier">IBCocoaTouchFramework</string>
<int key="IBUIContentHorizontalAlignment">0</int> <int key="IBUIContentHorizontalAlignment">0</int>
<int key="IBUIContentVerticalAlignment">0</int> <int key="IBUIContentVerticalAlignment">0</int>
<object class="NSFont" key="IBUIFont" id="232923975"> <object class="NSFont" key="IBUIFont" id="50803580">
<string key="NSName">Helvetica-Bold</string> <string key="NSName">Helvetica-Bold</string>
<double key="NSSize">15</double> <double key="NSSize">15</double>
<int key="NSfFlags">16</int> <int key="NSfFlags">16</int>
</object> </object>
<int key="IBUIButtonType">1</int> <int key="IBUIButtonType">1</int>
<string key="IBUINormalTitle">Scan!</string> <string key="IBUINormalTitle">Scan!</string>
<reference key="IBUIHighlightedTitleColor" ref="126998549"/> <reference key="IBUIHighlightedTitleColor" ref="85817449"/>
<object class="NSColor" key="IBUINormalTitleColor"> <object class="NSColor" key="IBUINormalTitleColor">
<int key="NSColorSpace">1</int> <int key="NSColorSpace">1</int>
<bytes key="NSRGB">MC4xOTYwNzg0MzQ2IDAuMzA5ODAzOTMyOSAwLjUyMTU2ODY1NgA</bytes> <bytes key="NSRGB">MC4xOTYwNzg0MzQ2IDAuMzA5ODAzOTMyOSAwLjUyMTU2ODY1NgA</bytes>
</object> </object>
<object class="NSColor" key="IBUINormalTitleShadowColor" id="470436788"> <object class="NSColor" key="IBUINormalTitleShadowColor" id="931878472">
<int key="NSColorSpace">3</int> <int key="NSColorSpace">3</int>
<bytes key="NSWhite">MC41AA</bytes> <bytes key="NSWhite">MC41AA</bytes>
</object> </object>
</object> </object>
<object class="IBUIButton" id="588220974"> <object class="IBUIButton" id="171320148">
<reference key="NSNextResponder" ref="191373211"/> <reference key="NSNextResponder" ref="191373211"/>
<int key="NSvFlags">292</int> <int key="NSvFlags">292</int>
<string key="NSFrame">{{282, 421}, {18, 19}}</string> <string key="NSFrame">{{282, 421}, {18, 19}}</string>
@ -116,15 +116,15 @@
<string key="targetRuntimeIdentifier">IBCocoaTouchFramework</string> <string key="targetRuntimeIdentifier">IBCocoaTouchFramework</string>
<int key="IBUIContentHorizontalAlignment">0</int> <int key="IBUIContentHorizontalAlignment">0</int>
<int key="IBUIContentVerticalAlignment">0</int> <int key="IBUIContentVerticalAlignment">0</int>
<reference key="IBUIFont" ref="232923975"/> <reference key="IBUIFont" ref="50803580"/>
<int key="IBUIButtonType">4</int> <int key="IBUIButtonType">4</int>
<bool key="IBUIShowsTouchWhenHighlighted">YES</bool> <bool key="IBUIShowsTouchWhenHighlighted">YES</bool>
<reference key="IBUIHighlightedTitleColor" ref="126998549"/> <reference key="IBUIHighlightedTitleColor" ref="85817449"/>
<object class="NSColor" key="IBUINormalTitleColor"> <object class="NSColor" key="IBUINormalTitleColor">
<int key="NSColorSpace">1</int> <int key="NSColorSpace">1</int>
<bytes key="NSRGB">MC4xOTYwNzg0MzQ2IDAuMzA5ODAzOTMyOSAwLjUyMTU2ODY1NgA</bytes> <bytes key="NSRGB">MC4xOTYwNzg0MzQ2IDAuMzA5ODAzOTMyOSAwLjUyMTU2ODY1NgA</bytes>
</object> </object>
<reference key="IBUINormalTitleShadowColor" ref="470436788"/> <reference key="IBUINormalTitleShadowColor" ref="931878472"/>
</object> </object>
</object> </object>
<string key="NSFrameSize">{320, 460}</string> <string key="NSFrameSize">{320, 460}</string>
@ -151,12 +151,21 @@
<object class="IBConnectionRecord"> <object class="IBConnectionRecord">
<object class="IBCocoaTouchEventConnection" key="connection"> <object class="IBCocoaTouchEventConnection" key="connection">
<string key="label">scan:</string> <string key="label">scan:</string>
<reference key="source" ref="804137716"/> <reference key="source" ref="1005126370"/>
<reference key="destination" ref="372490531"/> <reference key="destination" ref="372490531"/>
<int key="IBEventType">7</int> <int key="IBEventType">7</int>
</object> </object>
<int key="connectionID">7</int> <int key="connectionID">7</int>
</object> </object>
<object class="IBConnectionRecord">
<object class="IBCocoaTouchEventConnection" key="connection">
<string key="label">info:</string>
<reference key="source" ref="171320148"/>
<reference key="destination" ref="372490531"/>
<int key="IBEventType">7</int>
</object>
<int key="connectionID">9</int>
</object>
</object> </object>
<object class="IBMutableOrderedSet" key="objectRecords"> <object class="IBMutableOrderedSet" key="objectRecords">
<object class="NSArray" key="orderedObjects"> <object class="NSArray" key="orderedObjects">
@ -172,10 +181,10 @@
<reference key="object" ref="191373211"/> <reference key="object" ref="191373211"/>
<object class="NSMutableArray" key="children"> <object class="NSMutableArray" key="children">
<bool key="EncodedWithXMLCoder">YES</bool> <bool key="EncodedWithXMLCoder">YES</bool>
<reference ref="243359752"/> <reference ref="19193094"/>
<reference ref="501669536"/> <reference ref="1000547791"/>
<reference ref="804137716"/> <reference ref="1005126370"/>
<reference ref="588220974"/> <reference ref="171320148"/>
</object> </object>
<reference key="parent" ref="0"/> <reference key="parent" ref="0"/>
</object> </object>
@ -192,22 +201,22 @@
</object> </object>
<object class="IBObjectRecord"> <object class="IBObjectRecord">
<int key="objectID">4</int> <int key="objectID">4</int>
<reference key="object" ref="243359752"/> <reference key="object" ref="19193094"/>
<reference key="parent" ref="191373211"/> <reference key="parent" ref="191373211"/>
</object> </object>
<object class="IBObjectRecord"> <object class="IBObjectRecord">
<int key="objectID">5</int> <int key="objectID">5</int>
<reference key="object" ref="501669536"/> <reference key="object" ref="1000547791"/>
<reference key="parent" ref="191373211"/> <reference key="parent" ref="191373211"/>
</object> </object>
<object class="IBObjectRecord"> <object class="IBObjectRecord">
<int key="objectID">6</int> <int key="objectID">6</int>
<reference key="object" ref="804137716"/> <reference key="object" ref="1005126370"/>
<reference key="parent" ref="191373211"/> <reference key="parent" ref="191373211"/>
</object> </object>
<object class="IBObjectRecord"> <object class="IBObjectRecord">
<int key="objectID">8</int> <int key="objectID">8</int>
<reference key="object" ref="588220974"/> <reference key="object" ref="171320148"/>
<reference key="parent" ref="191373211"/> <reference key="parent" ref="191373211"/>
</object> </object>
</object> </object>
@ -269,7 +278,7 @@
</object> </object>
</object> </object>
<nil key="sourceID"/> <nil key="sourceID"/>
<int key="maxID">8</int> <int key="maxID">9</int>
</object> </object>
<object class="IBClassDescriber" key="IBDocument.Classes"> <object class="IBClassDescriber" key="IBDocument.Classes">
<object class="NSMutableArray" key="referencedPartialClassDescriptions"> <object class="NSMutableArray" key="referencedPartialClassDescriptions">
@ -278,16 +287,37 @@
<string key="className">ZXMainViewController</string> <string key="className">ZXMainViewController</string>
<string key="superclassName">UIViewController</string> <string key="superclassName">UIViewController</string>
<object class="NSMutableDictionary" key="actions"> <object class="NSMutableDictionary" key="actions">
<string key="NS.key.0">scan:</string> <bool key="EncodedWithXMLCoder">YES</bool>
<string key="NS.object.0">id</string> <object class="NSArray" key="dict.sortedKeys">
<bool key="EncodedWithXMLCoder">YES</bool>
<string>info:</string>
<string>scan:</string>
</object>
<object class="NSMutableArray" key="dict.values">
<bool key="EncodedWithXMLCoder">YES</bool>
<string>id</string>
<string>id</string>
</object>
</object> </object>
<object class="NSMutableDictionary" key="actionInfosByName"> <object class="NSMutableDictionary" key="actionInfosByName">
<string key="NS.key.0">scan:</string> <bool key="EncodedWithXMLCoder">YES</bool>
<object class="IBActionInfo" key="NS.object.0"> <object class="NSArray" key="dict.sortedKeys">
<bool key="EncodedWithXMLCoder">YES</bool>
<string>info:</string>
<string>scan:</string>
</object>
<object class="NSMutableArray" key="dict.values">
<bool key="EncodedWithXMLCoder">YES</bool>
<object class="IBActionInfo">
<string key="name">info:</string>
<string key="candidateClassName">id</string>
</object>
<object class="IBActionInfo">
<string key="name">scan:</string> <string key="name">scan:</string>
<string key="candidateClassName">id</string> <string key="candidateClassName">id</string>
</object> </object>
</object> </object>
</object>
<object class="IBClassDescriptionSource" key="sourceIdentifier"> <object class="IBClassDescriptionSource" key="sourceIdentifier">
<string key="majorKey">IBProjectSource</string> <string key="majorKey">IBProjectSource</string>
<string key="minorKey">Classes/ZXMainViewController.h</string> <string key="minorKey">Classes/ZXMainViewController.h</string>
@ -382,7 +412,7 @@
</object> </object>
<object class="IBPartialClassDescription"> <object class="IBPartialClassDescription">
<string key="className">NSObject</string> <string key="className">NSObject</string>
<object class="IBClassDescriptionSource" key="sourceIdentifier" id="931689211"> <object class="IBClassDescriptionSource" key="sourceIdentifier" id="890110704">
<string key="majorKey">IBFrameworkSource</string> <string key="majorKey">IBFrameworkSource</string>
<string key="minorKey">UIKit.framework/Headers/UIResponder.h</string> <string key="minorKey">UIKit.framework/Headers/UIResponder.h</string>
</object> </object>
@ -422,7 +452,7 @@
<object class="IBPartialClassDescription"> <object class="IBPartialClassDescription">
<string key="className">UIResponder</string> <string key="className">UIResponder</string>
<string key="superclassName">NSObject</string> <string key="superclassName">NSObject</string>
<reference key="sourceIdentifier" ref="931689211"/> <reference key="sourceIdentifier" ref="890110704"/>
</object> </object>
<object class="IBPartialClassDescription"> <object class="IBPartialClassDescription">
<string key="className">UISearchBar</string> <string key="className">UISearchBar</string>

View file

@ -6,7 +6,7 @@
</style> </style>
<meta name="viewport" content="width=device-width; initial-scale=1.0"> <meta name="viewport" content="width=device-width; initial-scale=1.0">
</head> </head>
<body style="background-color: black; color: white; font-family: sans-serif; text-align: center;"> <body style="background-color: #E9EEF3; color: black; font-family: sans-serif; text-align: center;">
<p style="font-weight: bold;"> <p style="font-weight: bold;">
<img style="width: 128px; height: 128px;" alt="ZXing Project Logo" src="../ZxingLarge.png"></p> <img style="width: 128px; height: 128px;" alt="ZXing Project Logo" src="../ZxingLarge.png"></p>
<h2>Strichcodes</h2> <h2>Strichcodes</h2>

View file

@ -6,7 +6,7 @@
</style> </style>
<meta name="viewport" content="width=device-width; initial-scale=1.0"> <meta name="viewport" content="width=device-width; initial-scale=1.0">
</head> </head>
<body style="background-color: black; color: white; font-family: sans-serif; text-align: center;"> <body style="background-color: #E9EEF3; color: black; font-family: sans-serif; text-align: center;">
<p style="font-weight: bold;"> <p style="font-weight: bold;">
<img style="width: 128px; height: 128px;" alt="ZXing Project Logo" src="../ZxingLarge.png"></p> <img style="width: 128px; height: 128px;" alt="ZXing Project Logo" src="../ZxingLarge.png"></p>
<h2>Barcodes</h2> <h2>Barcodes</h2>

View file

@ -2,16 +2,17 @@
<archive type="com.apple.InterfaceBuilder3.CocoaTouch.XIB" version="7.10"> <archive type="com.apple.InterfaceBuilder3.CocoaTouch.XIB" version="7.10">
<data> <data>
<int key="IBDocument.SystemTarget">768</int> <int key="IBDocument.SystemTarget">768</int>
<string key="IBDocument.SystemVersion">10D573</string> <string key="IBDocument.SystemVersion">10H542</string>
<string key="IBDocument.InterfaceBuilderVersion">762</string> <string key="IBDocument.InterfaceBuilderVersion">823</string>
<string key="IBDocument.AppKitVersion">1038.29</string> <string key="IBDocument.AppKitVersion">1038.35</string>
<string key="IBDocument.HIToolboxVersion">460.00</string> <string key="IBDocument.HIToolboxVersion">461.00</string>
<object class="NSMutableDictionary" key="IBDocument.PluginVersions"> <object class="NSMutableDictionary" key="IBDocument.PluginVersions">
<string key="NS.key.0">com.apple.InterfaceBuilder.IBCocoaTouchPlugin</string> <string key="NS.key.0">com.apple.InterfaceBuilder.IBCocoaTouchPlugin</string>
<string key="NS.object.0">87</string> <string key="NS.object.0">132</string>
</object> </object>
<object class="NSMutableArray" key="IBDocument.EditedObjectIDs"> <object class="NSMutableArray" key="IBDocument.EditedObjectIDs">
<bool key="EncodedWithXMLCoder">YES</bool> <bool key="EncodedWithXMLCoder">YES</bool>
<integer value="16"/>
</object> </object>
<object class="NSArray" key="IBDocument.PluginDependencies"> <object class="NSArray" key="IBDocument.PluginDependencies">
<bool key="EncodedWithXMLCoder">YES</bool> <bool key="EncodedWithXMLCoder">YES</bool>
@ -36,18 +37,51 @@
<string key="IBProxiedObjectIdentifier">IBFirstResponder</string> <string key="IBProxiedObjectIdentifier">IBFirstResponder</string>
<string key="targetRuntimeIdentifier">IBCocoaTouchFramework</string> <string key="targetRuntimeIdentifier">IBCocoaTouchFramework</string>
</object> </object>
<object class="IBUIWebView" id="221386056"> <object class="IBUIView" id="869561171">
<nil key="NSNextResponder"/> <reference key="NSNextResponder"/>
<int key="NSvFlags">274</int> <int key="NSvFlags">292</int>
<string key="NSFrameSize">{320, 460}</string> <object class="NSMutableArray" key="NSSubviews">
<object class="NSColor" key="IBUIBackgroundColor"> <bool key="EncodedWithXMLCoder">YES</bool>
<int key="NSColorSpace">3</int> <object class="IBUINavigationBar" id="828064752">
<bytes key="NSWhite">MAA</bytes> <reference key="NSNextResponder" ref="869561171"/>
<int key="NSvFlags">290</int>
<string key="NSFrameSize">{320, 44}</string>
<reference key="NSSuperview" ref="869561171"/>
<string key="targetRuntimeIdentifier">IBCocoaTouchFramework</string>
<object class="NSArray" key="IBUIItems">
<bool key="EncodedWithXMLCoder">YES</bool>
<object class="IBUINavigationItem" id="1020361707">
<reference key="IBUINavigationBar" ref="828064752"/>
<string key="IBUITitle">Title</string>
<string key="targetRuntimeIdentifier">IBCocoaTouchFramework</string>
</object>
</object>
</object>
<object class="IBUIWebView" id="924998598">
<reference key="NSNextResponder" ref="869561171"/>
<int key="NSvFlags">274</int>
<string key="NSFrame">{{0, 44}, {320, 416}}</string>
<reference key="NSSuperview" ref="869561171"/>
<object class="NSColor" key="IBUIBackgroundColor">
<int key="NSColorSpace">1</int>
<bytes key="NSRGB">MSAxIDEAA</bytes>
</object> </object>
<bool key="IBUIClipsSubviews">YES</bool>
<bool key="IBUIMultipleTouchEnabled">YES</bool> <bool key="IBUIMultipleTouchEnabled">YES</bool>
<string key="targetRuntimeIdentifier">IBCocoaTouchFramework</string> <string key="targetRuntimeIdentifier">IBCocoaTouchFramework</string>
<bool key="IBUIScalesPageToFit">YES</bool> <int key="IBUIDataDetectorTypes">1</int>
<bool key="IBUIDetectsPhoneNumbers">YES</bool>
</object>
</object>
<string key="NSFrameSize">{320, 460}</string>
<reference key="NSSuperview"/>
<object class="NSColor" key="IBUIBackgroundColor">
<int key="NSColorSpace">3</int>
<bytes key="NSWhite">MQA</bytes>
<object class="NSColorSpace" key="NSCustomColorSpace">
<int key="NSID">2</int>
</object>
</object>
<string key="targetRuntimeIdentifier">IBCocoaTouchFramework</string>
</object> </object>
</object> </object>
<object class="IBObjectContainer" key="IBDocument.Objects"> <object class="IBObjectContainer" key="IBDocument.Objects">
@ -57,9 +91,17 @@
<object class="IBCocoaTouchOutletConnection" key="connection"> <object class="IBCocoaTouchOutletConnection" key="connection">
<string key="label">view</string> <string key="label">view</string>
<reference key="source" ref="372490531"/> <reference key="source" ref="372490531"/>
<reference key="destination" ref="221386056"/> <reference key="destination" ref="869561171"/>
</object> </object>
<int key="connectionID">6</int> <int key="connectionID">13</int>
</object>
<object class="IBConnectionRecord">
<object class="IBCocoaTouchOutletConnection" key="connection">
<string key="label">webView</string>
<reference key="source" ref="372490531"/>
<reference key="destination" ref="924998598"/>
</object>
<int key="connectionID">17</int>
</object> </object>
</object> </object>
<object class="IBMutableOrderedSet" key="objectRecords"> <object class="IBMutableOrderedSet" key="objectRecords">
@ -83,10 +125,34 @@
<reference key="parent" ref="0"/> <reference key="parent" ref="0"/>
</object> </object>
<object class="IBObjectRecord"> <object class="IBObjectRecord">
<int key="objectID">4</int> <int key="objectID">12</int>
<reference key="object" ref="221386056"/> <reference key="object" ref="869561171"/>
<object class="NSMutableArray" key="children">
<bool key="EncodedWithXMLCoder">YES</bool>
<reference ref="828064752"/>
<reference ref="924998598"/>
</object>
<reference key="parent" ref="0"/> <reference key="parent" ref="0"/>
</object> </object>
<object class="IBObjectRecord">
<int key="objectID">14</int>
<reference key="object" ref="828064752"/>
<object class="NSMutableArray" key="children">
<bool key="EncodedWithXMLCoder">YES</bool>
<reference ref="1020361707"/>
</object>
<reference key="parent" ref="869561171"/>
</object>
<object class="IBObjectRecord">
<int key="objectID">15</int>
<reference key="object" ref="1020361707"/>
<reference key="parent" ref="828064752"/>
</object>
<object class="IBObjectRecord">
<int key="objectID">16</int>
<reference key="object" ref="924998598"/>
<reference key="parent" ref="869561171"/>
</object>
</object> </object>
</object> </object>
<object class="NSMutableDictionary" key="flattenedProperties"> <object class="NSMutableDictionary" key="flattenedProperties">
@ -95,12 +161,20 @@
<bool key="EncodedWithXMLCoder">YES</bool> <bool key="EncodedWithXMLCoder">YES</bool>
<string>-1.CustomClassName</string> <string>-1.CustomClassName</string>
<string>-2.CustomClassName</string> <string>-2.CustomClassName</string>
<string>4.IBPluginDependency</string> <string>12.IBEditorWindowLastContentRect</string>
<string>12.IBPluginDependency</string>
<string>14.IBPluginDependency</string>
<string>15.IBPluginDependency</string>
<string>16.IBPluginDependency</string>
</object> </object>
<object class="NSMutableArray" key="dict.values"> <object class="NSMutableArray" key="dict.values">
<bool key="EncodedWithXMLCoder">YES</bool> <bool key="EncodedWithXMLCoder">YES</bool>
<string>MessageViewController</string> <string>MessageViewController</string>
<string>UIResponder</string> <string>UIResponder</string>
<string>{{295, 243}, {320, 460}}</string>
<string>com.apple.InterfaceBuilder.IBCocoaTouchPlugin</string>
<string>com.apple.InterfaceBuilder.IBCocoaTouchPlugin</string>
<string>com.apple.InterfaceBuilder.IBCocoaTouchPlugin</string>
<string>com.apple.InterfaceBuilder.IBCocoaTouchPlugin</string> <string>com.apple.InterfaceBuilder.IBCocoaTouchPlugin</string>
</object> </object>
</object> </object>
@ -120,7 +194,7 @@
</object> </object>
</object> </object>
<nil key="sourceID"/> <nil key="sourceID"/>
<int key="maxID">6</int> <int key="maxID">17</int>
</object> </object>
<object class="IBClassDescriber" key="IBDocument.Classes"> <object class="IBClassDescriber" key="IBDocument.Classes">
<object class="NSMutableArray" key="referencedPartialClassDescriptions"> <object class="NSMutableArray" key="referencedPartialClassDescriptions">
@ -129,8 +203,15 @@
<string key="className">MessageViewController</string> <string key="className">MessageViewController</string>
<string key="superclassName">UIViewController</string> <string key="superclassName">UIViewController</string>
<object class="NSMutableDictionary" key="outlets"> <object class="NSMutableDictionary" key="outlets">
<string key="NS.key.0">callbackTarget</string> <string key="NS.key.0">webView</string>
<string key="NS.object.0">id</string> <string key="NS.object.0">UIWebView</string>
</object>
<object class="NSMutableDictionary" key="toOneOutletInfosByName">
<string key="NS.key.0">webView</string>
<object class="IBToOneOutletInfo" key="NS.object.0">
<string key="name">webView</string>
<string key="candidateClassName">UIWebView</string>
</object>
</object> </object>
<object class="IBClassDescriptionSource" key="sourceIdentifier"> <object class="IBClassDescriptionSource" key="sourceIdentifier">
<string key="majorKey">IBProjectSource</string> <string key="majorKey">IBProjectSource</string>
@ -175,13 +256,6 @@
<string key="minorKey">Foundation.framework/Headers/NSKeyedArchiver.h</string> <string key="minorKey">Foundation.framework/Headers/NSKeyedArchiver.h</string>
</object> </object>
</object> </object>
<object class="IBPartialClassDescription">
<string key="className">NSObject</string>
<object class="IBClassDescriptionSource" key="sourceIdentifier">
<string key="majorKey">IBFrameworkSource</string>
<string key="minorKey">Foundation.framework/Headers/NSNetServices.h</string>
</object>
</object>
<object class="IBPartialClassDescription"> <object class="IBPartialClassDescription">
<string key="className">NSObject</string> <string key="className">NSObject</string>
<object class="IBClassDescriptionSource" key="sourceIdentifier"> <object class="IBClassDescriptionSource" key="sourceIdentifier">
@ -189,13 +263,6 @@
<string key="minorKey">Foundation.framework/Headers/NSObject.h</string> <string key="minorKey">Foundation.framework/Headers/NSObject.h</string>
</object> </object>
</object> </object>
<object class="IBPartialClassDescription">
<string key="className">NSObject</string>
<object class="IBClassDescriptionSource" key="sourceIdentifier">
<string key="majorKey">IBFrameworkSource</string>
<string key="minorKey">Foundation.framework/Headers/NSPort.h</string>
</object>
</object>
<object class="IBPartialClassDescription"> <object class="IBPartialClassDescription">
<string key="className">NSObject</string> <string key="className">NSObject</string>
<object class="IBClassDescriptionSource" key="sourceIdentifier"> <object class="IBClassDescriptionSource" key="sourceIdentifier">
@ -203,13 +270,6 @@
<string key="minorKey">Foundation.framework/Headers/NSRunLoop.h</string> <string key="minorKey">Foundation.framework/Headers/NSRunLoop.h</string>
</object> </object>
</object> </object>
<object class="IBPartialClassDescription">
<string key="className">NSObject</string>
<object class="IBClassDescriptionSource" key="sourceIdentifier">
<string key="majorKey">IBFrameworkSource</string>
<string key="minorKey">Foundation.framework/Headers/NSStream.h</string>
</object>
</object>
<object class="IBPartialClassDescription"> <object class="IBPartialClassDescription">
<string key="className">NSObject</string> <string key="className">NSObject</string>
<object class="IBClassDescriptionSource" key="sourceIdentifier"> <object class="IBClassDescriptionSource" key="sourceIdentifier">
@ -231,13 +291,6 @@
<string key="minorKey">Foundation.framework/Headers/NSURLConnection.h</string> <string key="minorKey">Foundation.framework/Headers/NSURLConnection.h</string>
</object> </object>
</object> </object>
<object class="IBPartialClassDescription">
<string key="className">NSObject</string>
<object class="IBClassDescriptionSource" key="sourceIdentifier">
<string key="majorKey">IBFrameworkSource</string>
<string key="minorKey">Foundation.framework/Headers/NSXMLParser.h</string>
</object>
</object>
<object class="IBPartialClassDescription"> <object class="IBPartialClassDescription">
<string key="className">NSObject</string> <string key="className">NSObject</string>
<object class="IBClassDescriptionSource" key="sourceIdentifier"> <object class="IBClassDescriptionSource" key="sourceIdentifier">
@ -259,6 +312,35 @@
<string key="minorKey">UIKit.framework/Headers/UIResponder.h</string> <string key="minorKey">UIKit.framework/Headers/UIResponder.h</string>
</object> </object>
</object> </object>
<object class="IBPartialClassDescription">
<string key="className">UIBarButtonItem</string>
<string key="superclassName">UIBarItem</string>
<object class="IBClassDescriptionSource" key="sourceIdentifier">
<string key="majorKey">IBFrameworkSource</string>
<string key="minorKey">UIKit.framework/Headers/UIBarButtonItem.h</string>
</object>
</object>
<object class="IBPartialClassDescription">
<string key="className">UIBarItem</string>
<string key="superclassName">NSObject</string>
<object class="IBClassDescriptionSource" key="sourceIdentifier">
<string key="majorKey">IBFrameworkSource</string>
<string key="minorKey">UIKit.framework/Headers/UIBarItem.h</string>
</object>
</object>
<object class="IBPartialClassDescription">
<string key="className">UINavigationBar</string>
<string key="superclassName">UIView</string>
<object class="IBClassDescriptionSource" key="sourceIdentifier" id="171454485">
<string key="majorKey">IBFrameworkSource</string>
<string key="minorKey">UIKit.framework/Headers/UINavigationBar.h</string>
</object>
</object>
<object class="IBPartialClassDescription">
<string key="className">UINavigationItem</string>
<string key="superclassName">NSObject</string>
<reference key="sourceIdentifier" ref="171454485"/>
</object>
<object class="IBPartialClassDescription"> <object class="IBPartialClassDescription">
<string key="className">UIResponder</string> <string key="className">UIResponder</string>
<string key="superclassName">NSObject</string> <string key="superclassName">NSObject</string>
@ -280,6 +362,13 @@
<string key="minorKey">UIKit.framework/Headers/UISearchDisplayController.h</string> <string key="minorKey">UIKit.framework/Headers/UISearchDisplayController.h</string>
</object> </object>
</object> </object>
<object class="IBPartialClassDescription">
<string key="className">UIView</string>
<object class="IBClassDescriptionSource" key="sourceIdentifier">
<string key="majorKey">IBFrameworkSource</string>
<string key="minorKey">UIKit.framework/Headers/UIPrintFormatter.h</string>
</object>
</object>
<object class="IBPartialClassDescription"> <object class="IBPartialClassDescription">
<string key="className">UIView</string> <string key="className">UIView</string>
<object class="IBClassDescriptionSource" key="sourceIdentifier"> <object class="IBClassDescriptionSource" key="sourceIdentifier">
@ -302,6 +391,20 @@
<string key="minorKey">UIKit.framework/Headers/UINavigationController.h</string> <string key="minorKey">UIKit.framework/Headers/UINavigationController.h</string>
</object> </object>
</object> </object>
<object class="IBPartialClassDescription">
<string key="className">UIViewController</string>
<object class="IBClassDescriptionSource" key="sourceIdentifier">
<string key="majorKey">IBFrameworkSource</string>
<string key="minorKey">UIKit.framework/Headers/UIPopoverController.h</string>
</object>
</object>
<object class="IBPartialClassDescription">
<string key="className">UIViewController</string>
<object class="IBClassDescriptionSource" key="sourceIdentifier">
<string key="majorKey">IBFrameworkSource</string>
<string key="minorKey">UIKit.framework/Headers/UISplitViewController.h</string>
</object>
</object>
<object class="IBPartialClassDescription"> <object class="IBPartialClassDescription">
<string key="className">UIViewController</string> <string key="className">UIViewController</string>
<object class="IBClassDescriptionSource" key="sourceIdentifier"> <object class="IBClassDescriptionSource" key="sourceIdentifier">
@ -335,15 +438,15 @@
</object> </object>
<object class="NSMutableDictionary" key="IBDocument.PluginDeclaredDependencyDefaults"> <object class="NSMutableDictionary" key="IBDocument.PluginDeclaredDependencyDefaults">
<string key="NS.key.0">com.apple.InterfaceBuilder.CocoaTouchPlugin.iPhoneOS</string> <string key="NS.key.0">com.apple.InterfaceBuilder.CocoaTouchPlugin.iPhoneOS</string>
<integer value="784" key="NS.object.0"/> <integer value="1056" key="NS.object.0"/>
</object> </object>
<object class="NSMutableDictionary" key="IBDocument.PluginDeclaredDevelopmentDependencies"> <object class="NSMutableDictionary" key="IBDocument.PluginDeclaredDevelopmentDependencies">
<string key="NS.key.0">com.apple.InterfaceBuilder.CocoaTouchPlugin.InterfaceBuilder3</string> <string key="NS.key.0">com.apple.InterfaceBuilder.CocoaTouchPlugin.InterfaceBuilder3</string>
<integer value="3000" key="NS.object.0"/> <integer value="3000" key="NS.object.0"/>
</object> </object>
<bool key="IBDocument.PluginDeclaredDependenciesTrackSystemTargetVersion">YES</bool> <bool key="IBDocument.PluginDeclaredDependenciesTrackSystemTargetVersion">YES</bool>
<string key="IBDocument.LastKnownRelativeProjectPath">../ZXing.xcodeproj</string> <string key="IBDocument.LastKnownRelativeProjectPath">../Barcodes.xcodeproj</string>
<int key="IBDocument.defaultPropertyAccessControl">3</int> <int key="IBDocument.defaultPropertyAccessControl">3</int>
<string key="IBCocoaTouchPluginVersion">87</string> <string key="IBCocoaTouchPluginVersion">132</string>
</data> </data>
</archive> </archive>

View file

@ -6,7 +6,7 @@
</style> </style>
<meta name="viewport" content="width=device-width; initial-scale=1.0"> <meta name="viewport" content="width=device-width; initial-scale=1.0">
</head> </head>
<body style="background-color: black; color: white; font-family: sans-serif; text-align: center;"> <body style="background-color: #E9EEF3; color: black; font-family: sans-serif; text-align: center;">
<p style="font-weight: bold;"> <p style="font-weight: bold;">
<img style="width: 128px; height: 128px;" alt="ZXing Project Logo" src="../ZxingLarge.png"></p> <img style="width: 128px; height: 128px;" alt="ZXing Project Logo" src="../ZxingLarge.png"></p>
<h2>Streckkoder</h2> <h2>Streckkoder</h2>