diff --git a/iphone/Barcodes/Classes/ArchiveController.h b/iphone/Barcodes/Classes/ArchiveController.h index 530d16bd2..c6c725104 100644 --- a/iphone/Barcodes/Classes/ArchiveController.h +++ b/iphone/Barcodes/Classes/ArchiveController.h @@ -3,6 +3,7 @@ // UIShowcase // // Created by Christian Brunschen on 29/05/2008. +// Modified by Romain Pechayre on 16/11/2010 /* * Copyright 2008 ZXing authors * diff --git a/iphone/Barcodes/Classes/ArchiveController.m b/iphone/Barcodes/Classes/ArchiveController.m index 10dd8e44b..a1b1008c2 100644 --- a/iphone/Barcodes/Classes/ArchiveController.m +++ b/iphone/Barcodes/Classes/ArchiveController.m @@ -139,6 +139,11 @@ - (void)viewWillAppear:(BOOL)animated { [super viewWillAppear:animated]; + self.scans = [NSMutableArray arrayWithArray:[[Database sharedDatabase] scans]]; + self.results = [NSMutableArray arrayWithCapacity:self.scans.count]; + for (Scan *scan in scans) { + [results addObject:[ResultParser parsedResultForString:scan.text]]; + } } - (void)viewDidAppear:(BOOL)animated { diff --git a/iphone/Barcodes/Classes/ZXMainViewController.h b/iphone/Barcodes/Classes/ZXMainViewController.h index baa568079..82f9e07c3 100644 --- a/iphone/Barcodes/Classes/ZXMainViewController.h +++ b/iphone/Barcodes/Classes/ZXMainViewController.h @@ -19,7 +19,6 @@ UniversalResultParser *resultParser; NSArray *actions; ParsedResult *result; - IBOutlet UILabel *latestResultLabel; IBOutlet UITextView *resultView; } @@ -27,7 +26,6 @@ @property (nonatomic,assign) NSArray *actions; @property (nonatomic,assign) ParsedResult *result; @property (nonatomic,retain) IBOutlet UITextView *resultView; -@property (nonatomic,retain) IBOutlet UILabel *latestResultLabel; - (IBAction)scan:(id)sender; - (IBAction)info:(id)sender; diff --git a/iphone/Barcodes/Classes/ZXMainViewController.xib b/iphone/Barcodes/Classes/ZXMainViewController.xib index a777a8794..8c45f0a23 100644 --- a/iphone/Barcodes/Classes/ZXMainViewController.xib +++ b/iphone/Barcodes/Classes/ZXMainViewController.xib @@ -42,7 +42,7 @@ 274 YES - + 292 {{199, 42}, {120, 66}} @@ -70,7 +70,7 @@ 17 16 - + 1 MCAwIDAAA @@ -128,7 +128,7 @@ - + 292 {{4, 258}, {311, 152}} @@ -140,10 +140,10 @@ LatestResultBackground.png - + 292 - {{25, 269}, {94, 18}} + {{20, 269}, {94, 18}} NO YES @@ -156,12 +156,12 @@ 14 16 - + 1 10 - + 292 {{19, 292}, {280, 95}} @@ -182,10 +182,10 @@ 15 - + 292 - {{15, 418}, {106, 26}} + {{13, 414}, {150, 35}} NO IBCocoaTouchFramework @@ -193,12 +193,9 @@ 0 1 - View Archive + View Full Archive - - 1 - MC4xOTYwNzg0MzQ2IDAuMzA5ODAzOTMyOSAwLjUyMTU2ODY1NgA - + @@ -244,7 +241,7 @@ showArchive: - + 7 @@ -254,7 +251,7 @@ resultView - + 16 @@ -274,13 +271,13 @@ YES - - - + + + - - + + @@ -302,7 +299,7 @@ 10 - + @@ -317,22 +314,22 @@ 15 - + 17 - + 19 - + 20 - + @@ -369,7 +366,7 @@ com.apple.InterfaceBuilder.IBCocoaTouchPlugin com.apple.InterfaceBuilder.IBCocoaTouchPlugin - P4AAAL+AAABDCQAAw90AAA + P4AAAL+AAABAoAAAw98AAA com.apple.InterfaceBuilder.IBCocoaTouchPlugin