Permalink
Browse files

- Updated thumbnail view

  • Loading branch information...
1 parent 7d0d230 commit 5992b47c13b2138d6bc116b2e42c5e861dbd1dfa @s1g53gv s1g53gv committed Aug 1, 2012
Showing with 145 additions and 372 deletions.
  1. BIN Bundle/FPKKioskBundle.bundle/Info.plist
  2. BIN Bundle/FPKKioskBundle.bundle/Kiosk_ipad.nib
  3. BIN Bundle/FPKKioskBundle.bundle/Kiosk_phone.nib
  4. BIN Bundle/FPKKioskBundle.bundle/backThumb.png
  5. BIN Bundle/FPKKioskBundle.bundle/backThumb@2x.png
  6. BIN Bundle/FPKKioskBundle.bundle/backThumb_iphone.png
  7. BIN Bundle/FPKKioskBundle.bundle/backThumb_iphone@2x.png
  8. BIN Bundle/FPKKioskBundle.bundle/border.png
  9. BIN Bundle/FPKKioskBundle.bundle/download.png
  10. BIN Bundle/FPKKioskBundle.bundle/download@2x.png
  11. BIN Bundle/FPKKioskBundle.bundle/header.png
  12. BIN Bundle/FPKKioskBundle.bundle/header@2x.png
  13. BIN Bundle/FPKKioskBundle.bundle/header_iphone.png
  14. BIN Bundle/FPKKioskBundle.bundle/header_iphone@2x.png
  15. BIN Bundle/FPKKioskBundle.bundle/pause.png
  16. BIN Bundle/FPKKioskBundle.bundle/pause@2x.png
  17. BIN Bundle/FPKKioskBundle.bundle/remove.png
  18. BIN Bundle/FPKKioskBundle.bundle/remove@2x.png
  19. BIN Bundle/FPKKioskBundle.bundle/resume.png
  20. BIN Bundle/FPKKioskBundle.bundle/resume@2x.png
  21. BIN Bundle/FPKKioskBundle.bundle/view.png
  22. BIN Bundle/FPKKioskBundle.bundle/view@2x.png
  23. BIN Bundle/FPKReaderBundle.bundle/AudioViewController.nib
  24. BIN Bundle/FPKReaderBundle.bundle/BookmarkView.nib
  25. BIN Bundle/FPKReaderBundle.bundle/Info.plist
  26. BIN Bundle/FPKReaderBundle.bundle/OutlineView.nib
  27. BIN Bundle/FPKReaderBundle.bundle/SearchView2_pad.nib
  28. BIN Bundle/FPKReaderBundle.bundle/SearchView2_phone.nib
  29. BIN Bundle/FPKReaderBundle.bundle/TextDisplayView.nib
  30. BIN Bundle/FPKReaderBundle.bundle/WebBrowser.nib
  31. BIN Bundle/FPKReaderBundle.bundle/X.png
  32. BIN Bundle/FPKReaderBundle.bundle/X@2x.png
  33. BIN Bundle/FPKReaderBundle.bundle/blackslider.png
  34. BIN Bundle/FPKReaderBundle.bundle/bookmark_add.png
  35. BIN Bundle/FPKReaderBundle.bundle/bookmark_add@2x.png
  36. BIN Bundle/FPKReaderBundle.bundle/changeModeDouble.png
  37. BIN Bundle/FPKReaderBundle.bundle/changeModeDouble@2x.png
  38. BIN Bundle/FPKReaderBundle.bundle/changeModeOverflow.png
  39. BIN Bundle/FPKReaderBundle.bundle/changeModeOverflow@2x.png
  40. BIN Bundle/FPKReaderBundle.bundle/changeModeSingle.png
  41. BIN Bundle/FPKReaderBundle.bundle/changeModeSingle@2x.png
  42. BIN Bundle/FPKReaderBundle.bundle/close.png
  43. BIN Bundle/FPKReaderBundle.bundle/close_player.png
  44. BIN Bundle/FPKReaderBundle.bundle/direction_l2r.png
  45. BIN Bundle/FPKReaderBundle.bundle/direction_l2r@2x.png
  46. BIN Bundle/FPKReaderBundle.bundle/direction_r2l.png
  47. BIN Bundle/FPKReaderBundle.bundle/direction_r2l@2x.png
  48. BIN Bundle/FPKReaderBundle.bundle/img_outline_triangledown.png
  49. BIN Bundle/FPKReaderBundle.bundle/img_outline_triangleright.png
  50. BIN Bundle/FPKReaderBundle.bundle/indice.png
  51. BIN Bundle/FPKReaderBundle.bundle/indice@2x.png
  52. BIN Bundle/FPKReaderBundle.bundle/next.png
  53. BIN Bundle/FPKReaderBundle.bundle/pagelead.png
  54. BIN Bundle/FPKReaderBundle.bundle/pagelead@2x.png
  55. BIN Bundle/FPKReaderBundle.bundle/pause_player.png
  56. BIN Bundle/FPKReaderBundle.bundle/play_player.png
  57. BIN Bundle/FPKReaderBundle.bundle/prew.png
  58. BIN Bundle/FPKReaderBundle.bundle/reload.png
  59. BIN Bundle/FPKReaderBundle.bundle/search.png
  60. BIN Bundle/FPKReaderBundle.bundle/search@2x.png
  61. BIN Bundle/FPKReaderBundle.bundle/stop.png
  62. BIN Bundle/FPKReaderBundle.bundle/text.png
  63. BIN Bundle/FPKReaderBundle.bundle/text@2x.png
  64. BIN Bundle/FPKReaderBundle.bundle/zoomLock.png
  65. BIN Bundle/FPKReaderBundle.bundle/zoomLock@2x.png
  66. BIN Bundle/FPKReaderBundle.bundle/zoomUnlock.png
  67. BIN Bundle/FPKReaderBundle.bundle/zoomUnlock@2x.png
  68. +0 −3 Classes/KioskApp/FastPDFKit_KioskAppDelegate.m
  69. +12 −0 Classes/Reader/ReaderViewController.h
  70. +129 −368 Classes/Reader/ReaderViewController.m
  71. +1 −0 Classes/Reader/ThumbnailSlider/TVThumbnailScrollView.m
  72. +3 −1 Resources/FastPdfKit_Kiosk-Info.plist
View
BIN Bundle/FPKKioskBundle.bundle/Info.plist
Binary file not shown.
View
BIN Bundle/FPKKioskBundle.bundle/Kiosk_ipad.nib
Binary file not shown.
View
BIN Bundle/FPKKioskBundle.bundle/Kiosk_phone.nib
Binary file not shown.
View
BIN Bundle/FPKKioskBundle.bundle/backThumb.png
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
View
BIN Bundle/FPKKioskBundle.bundle/backThumb@2x.png
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
View
BIN Bundle/FPKKioskBundle.bundle/backThumb_iphone.png
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
View
BIN Bundle/FPKKioskBundle.bundle/backThumb_iphone@2x.png
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
View
BIN Bundle/FPKKioskBundle.bundle/border.png
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
View
BIN Bundle/FPKKioskBundle.bundle/download.png
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
View
BIN Bundle/FPKKioskBundle.bundle/download@2x.png
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
View
BIN Bundle/FPKKioskBundle.bundle/header.png
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
View
BIN Bundle/FPKKioskBundle.bundle/header@2x.png
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
View
BIN Bundle/FPKKioskBundle.bundle/header_iphone.png
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
View
BIN Bundle/FPKKioskBundle.bundle/header_iphone@2x.png
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
View
BIN Bundle/FPKKioskBundle.bundle/pause.png
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
View
BIN Bundle/FPKKioskBundle.bundle/pause@2x.png
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
View
BIN Bundle/FPKKioskBundle.bundle/remove.png
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
View
BIN Bundle/FPKKioskBundle.bundle/remove@2x.png
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
View
BIN Bundle/FPKKioskBundle.bundle/resume.png
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
View
BIN Bundle/FPKKioskBundle.bundle/resume@2x.png
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
View
BIN Bundle/FPKKioskBundle.bundle/view.png
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
View
BIN Bundle/FPKKioskBundle.bundle/view@2x.png
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
View
BIN Bundle/FPKReaderBundle.bundle/AudioViewController.nib
Binary file not shown.
View
BIN Bundle/FPKReaderBundle.bundle/BookmarkView.nib
Binary file not shown.
View
BIN Bundle/FPKReaderBundle.bundle/Info.plist
Binary file not shown.
View
BIN Bundle/FPKReaderBundle.bundle/OutlineView.nib
Binary file not shown.
View
BIN Bundle/FPKReaderBundle.bundle/SearchView2_pad.nib
Binary file not shown.
View
BIN Bundle/FPKReaderBundle.bundle/SearchView2_phone.nib
Binary file not shown.
View
BIN Bundle/FPKReaderBundle.bundle/TextDisplayView.nib
Binary file not shown.
View
BIN Bundle/FPKReaderBundle.bundle/WebBrowser.nib
Binary file not shown.
View
BIN Bundle/FPKReaderBundle.bundle/X.png
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
View
BIN Bundle/FPKReaderBundle.bundle/X@2x.png
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
View
BIN Bundle/FPKReaderBundle.bundle/blackslider.png
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
View
BIN Bundle/FPKReaderBundle.bundle/bookmark_add.png
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
View
BIN Bundle/FPKReaderBundle.bundle/bookmark_add@2x.png
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
View
BIN Bundle/FPKReaderBundle.bundle/changeModeDouble.png
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
View
BIN Bundle/FPKReaderBundle.bundle/changeModeDouble@2x.png
Diff not rendered.
View
BIN Bundle/FPKReaderBundle.bundle/changeModeOverflow.png
Diff not rendered.
View
BIN Bundle/FPKReaderBundle.bundle/changeModeOverflow@2x.png
Diff not rendered.
View
BIN Bundle/FPKReaderBundle.bundle/changeModeSingle.png
Diff not rendered.
View
BIN Bundle/FPKReaderBundle.bundle/changeModeSingle@2x.png
Diff not rendered.
View
BIN Bundle/FPKReaderBundle.bundle/close.png
Diff not rendered.
View
BIN Bundle/FPKReaderBundle.bundle/close_player.png
Diff not rendered.
View
BIN Bundle/FPKReaderBundle.bundle/direction_l2r.png
Diff not rendered.
View
BIN Bundle/FPKReaderBundle.bundle/direction_l2r@2x.png
Diff not rendered.
View
BIN Bundle/FPKReaderBundle.bundle/direction_r2l.png
Diff not rendered.
View
BIN Bundle/FPKReaderBundle.bundle/direction_r2l@2x.png
Diff not rendered.
View
BIN Bundle/FPKReaderBundle.bundle/img_outline_triangledown.png
Diff not rendered.
View
BIN Bundle/FPKReaderBundle.bundle/img_outline_triangleright.png
Diff not rendered.
View
BIN Bundle/FPKReaderBundle.bundle/indice.png
Diff not rendered.
View
BIN Bundle/FPKReaderBundle.bundle/indice@2x.png
Diff not rendered.
View
BIN Bundle/FPKReaderBundle.bundle/next.png
Diff not rendered.
View
BIN Bundle/FPKReaderBundle.bundle/pagelead.png
Diff not rendered.
View
BIN Bundle/FPKReaderBundle.bundle/pagelead@2x.png
Diff not rendered.
View
BIN Bundle/FPKReaderBundle.bundle/pause_player.png
Diff not rendered.
View
BIN Bundle/FPKReaderBundle.bundle/play_player.png
Diff not rendered.
View
BIN Bundle/FPKReaderBundle.bundle/prew.png
Diff not rendered.
View
BIN Bundle/FPKReaderBundle.bundle/reload.png
Diff not rendered.
View
BIN Bundle/FPKReaderBundle.bundle/search.png
Diff not rendered.
View
BIN Bundle/FPKReaderBundle.bundle/search@2x.png
Diff not rendered.
View
BIN Bundle/FPKReaderBundle.bundle/stop.png
Diff not rendered.
View
BIN Bundle/FPKReaderBundle.bundle/text.png
Diff not rendered.
View
BIN Bundle/FPKReaderBundle.bundle/text@2x.png
Diff not rendered.
View
BIN Bundle/FPKReaderBundle.bundle/zoomLock.png
Diff not rendered.
View
BIN Bundle/FPKReaderBundle.bundle/zoomLock@2x.png
Diff not rendered.
View
BIN Bundle/FPKReaderBundle.bundle/zoomUnlock.png
Diff not rendered.
View
BIN Bundle/FPKReaderBundle.bundle/zoomUnlock@2x.png
Diff not rendered.
View
3 Classes/KioskApp/FastPDFKit_KioskAppDelegate.m
@@ -24,12 +24,9 @@ - (BOOL)application:(UIApplication *)application didFinishLaunchingWithOptions:(
NSString * settingsBundlePath = [bundlePath stringByAppendingPathComponent:@"Settings.bundle"];
NSString * settingsPath = [NSBundle pathForResource:@"Root" ofType:@"plist" inDirectory:settingsBundlePath];
- NSLog(@"Settings %@", settingsPath);
-
NSDictionary * settingsDictionary = [NSDictionary dictionaryWithContentsOfFile:settingsPath];
[[NSUserDefaults standardUserDefaults] registerDefaults:settingsDictionary];
-
//Comment the line below to disable NewsStand remote Notification
NSString *filePath = [[[NSBundle mainBundle] resourcePath] stringByAppendingPathComponent:[NSString stringWithFormat:@"%@.plist",@"FastPdfKit_Kiosk-Info"]];
View
12 Classes/Reader/ReaderViewController.h
@@ -99,6 +99,12 @@
UIImage * imgLeadRight;
UIImage * imgLeadLeft;
+
+ UIImage * imgDismiss;
+ UIImage * imgBookmark;
+ UIImage * imgSearch;
+ UIImage * imgOutline;
+ UIImage * imgText;
}
@@ -116,6 +122,12 @@
@property (nonatomic,retain) UIImage * imgLeadRight;
@property (nonatomic,retain) UIImage * imgLeadLeft;
@property (nonatomic,retain) UIImage * imgModeOverflow;
+@property (nonatomic,retain) UIImage * imgDismiss;
+@property (nonatomic,retain) UIImage * imgBookmark;
+@property (nonatomic,retain) UIImage * imgSearch;
+@property (nonatomic,retain) UIImage * imgOutline;
+@property (nonatomic,retain) UIImage * imgText;
+@property (nonatomic, readwrite) CGFloat toolbarHeight;
-(void)setNumberOfPageToolbar;
View
497 Classes/Reader/ReaderViewController.m
@@ -50,10 +50,11 @@ @implementation ReaderViewController
@synthesize pageSlider;
@synthesize reusablePopover;
@synthesize multimediaVisible;
-
+@synthesize toolbarHeight;
@synthesize changeModeButton,zoomLockButton,changeDirectionButton,changeLeadButton;
@synthesize imgModeSingle, imgModeDouble, imgZoomLock, imgZoomUnlock, imgl2r, imgr2l, imgLeadRight, imgLeadLeft, imgModeOverflow;
+@synthesize imgSearch, imgDismiss, imgOutline, imgBookmark, imgText;
-(UIPopoverController *)prepareReusablePopoverControllerWithController:(UIViewController *)controller {
@@ -926,9 +927,7 @@ -(void) documentViewController:(MFDocumentViewController *)dvc didGoToPage:(NSUI
// in this callback.
[pageNumLabel setText:PAGE_NUM_LABEL_TEXT(page,[[self document]numberOfPages])];
-
- //[thumbsliderHorizontal goToPage:page-1 animated:YES];
-
+
[self setNumberOfPageToolbar];
}
@@ -1132,72 +1131,93 @@ - (void)loadView {
[aView release];
}
-
-
--(void)prepareToolbar {
-
- NSMutableArray * items = nil;
- UIBarButtonItem * aBarButtonItem = nil;
- UILabel * aLabel = nil;
- NSString *labelText = nil;
- UIToolbar * aToolbar = nil;
- UIButton *aButton = nil;
+-(void)loadResources {
- toolbarHeight = 44;
-
- // if(UI_USER_INTERFACE_IDIOM() == UIUserInterfaceIdiomPad) { // IPad.
-
+ if(self.toolbarHeight == 0)
+ self.toolbarHeight = 44.0;
+
+ if(!self.imgModeSingle)
self.imgModeSingle = [UIImage imageWithContentsOfFile:MF_BUNDLED_RESOURCE(@"FPKReaderBundle",@"changeModeSingle",@"png")];
-
+
+ if(!self.imgModeDouble)
self.imgModeDouble = [UIImage imageWithContentsOfFile:MF_BUNDLED_RESOURCE(@"FPKReaderBundle",@"changeModeDouble",@"png")];
-
+
+ if(!self.imgZoomLock)
self.imgZoomLock = [UIImage imageWithContentsOfFile:MF_BUNDLED_RESOURCE(@"FPKReaderBundle",@"zoomLock",@"png")];
-
+
+ if(!self.imgZoomUnlock)
self.imgZoomUnlock = [UIImage imageWithContentsOfFile:MF_BUNDLED_RESOURCE(@"FPKReaderBundle",@"zoomUnlock",@"png")];
-
+
+ if(!self.imgl2r)
self.imgl2r = [UIImage imageWithContentsOfFile:MF_BUNDLED_RESOURCE(@"FPKReaderBundle",@"direction_l2r",@"png")];
-
+
+ if(!self.imgr2l)
self.imgr2l = [UIImage imageWithContentsOfFile:MF_BUNDLED_RESOURCE(@"FPKReaderBundle",@"direction_r2l",@"png")];
-
+
+ if(!self.imgLeadRight)
self.imgLeadRight = [UIImage imageWithContentsOfFile:MF_BUNDLED_RESOURCE(@"FPKReaderBundle",@"pagelead",@"png")];
-
+
+ if(!self.imgLeadLeft)
self.imgLeadLeft = [UIImage imageWithContentsOfFile:MF_BUNDLED_RESOURCE(@"FPKReaderBundle",@"pagelead",@"png")];
-
+
+ if(!self.imgModeOverflow)
self.imgModeOverflow = [UIImage imageWithContentsOfFile:MF_BUNDLED_RESOURCE(@"FPKReaderBundle", @"changeModeOverflow", @"png")];
+
+ if(UI_USER_INTERFACE_IDIOM() == UIUserInterfaceIdiomPad) {
+
+ if(!self.imgDismiss)
+ self.imgDismiss = [UIImage imageWithContentsOfFile:MF_BUNDLED_RESOURCE(@"FPKReaderBundle", @"X", @"png")];
+
+ if(!self.imgText)
+ self.imgText = [UIImage imageWithContentsOfFile:MF_BUNDLED_RESOURCE(@"FPKReaderBundle", @"text", @"png")];
+
+ if(!self.imgOutline)
+ self.imgOutline = [UIImage imageWithContentsOfFile:MF_BUNDLED_RESOURCE(@"FPKReaderBundle", @"indice", @"png")];
+
+ if(!self.imgBookmark)
+ self.imgBookmark = [UIImage imageWithContentsOfFile:MF_BUNDLED_RESOURCE(@"FPKReaderBundle", @"bookmark_add", @"png")];
+
+ if(!self.imgSearch)
+ self.imgSearch = [UIImage imageWithContentsOfFile:MF_BUNDLED_RESOURCE(@"FPKReaderBundle", @"search", @"png")];
+
+ } else {
+
+ if(!self.imgDismiss)
+ self.imgDismiss = [UIImage imageWithContentsOfFile:MF_BUNDLED_RESOURCE(@"FPKReaderBundle", @"X_phone", @"png")];
+
+ if(!self.imgText)
+ self.imgText = [UIImage imageWithContentsOfFile:MF_BUNDLED_RESOURCE(@"FPKReaderBundle", @"text_phone", @"png")];
+
+ if(!self.imgOutline)
+ self.imgOutline = [UIImage imageWithContentsOfFile:MF_BUNDLED_RESOURCE(@"FPKReaderBundle", @"indice_phone", @"png")];
+
+ if(!self.imgBookmark)
+ self.imgBookmark = [UIImage imageWithContentsOfFile:MF_BUNDLED_RESOURCE(@"FPKReaderBundle", @"bookmark_add_phone", @"png")];
+
+ if(!self.imgSearch)
+ self.imgSearch = [UIImage imageWithContentsOfFile:MF_BUNDLED_RESOURCE(@"FPKReaderBundle", @"search_phone", @"png")];
+ }
+}
+
+-(void)prepareToolbar {
+
+ NSMutableArray * items = nil;
+ UIBarButtonItem * aBarButtonItem = nil;
+ UILabel * aLabel = nil;
+ NSString *labelText = nil;
+ UIToolbar * aToolbar = nil;
+ UIButton *aButton = nil;
-// } else { // IPhone.
-//
-// self.imgModeSingle = [UIImage imageWithContentsOfFile:MF_BUNDLED_RESOURCE(@"FPKReaderBundle",@"changeModeSingle_phone",@"png")];
-//
-// self.imgModeDouble = [UIImage imageWithContentsOfFile:MF_BUNDLED_RESOURCE(@"FPKReaderBundle",@"changeModeDouble_phone",@"png")];
-//
-// self.imgZoomLock = [UIImage imageWithContentsOfFile:MF_BUNDLED_RESOURCE(@"FPKReaderBundle",@"zoomLock_phone",@"png")];
-//
-// self.imgZoomUnlock = [UIImage imageWithContentsOfFile:MF_BUNDLED_RESOURCE(@"FPKReaderBundle",@"zoomUnlock_phone",@"png")];
-//
-// self.imgl2r = [UIImage imageWithContentsOfFile:MF_BUNDLED_RESOURCE(@"FPKReaderBundle",@"direction_l2r_phone",@"png")];
-//
-// self.imgr2l = [UIImage imageWithContentsOfFile:MF_BUNDLED_RESOURCE(@"FPKReaderBundle",@"direction_r2l_phone",@"png")];
-//
-// self.imgLeadRight = [UIImage imageWithContentsOfFile:MF_BUNDLED_RESOURCE(@"FPKReaderBundle",@"pagelead_phone",@"png")];
-//
-// self.imgLeadLeft = [UIImage imageWithContentsOfFile:MF_BUNDLED_RESOURCE(@"FPKReaderBundle",@"pagelead_phone",@"png")];
-//
-// self.imgModeOverflow = [UIImage imageWithContentsOfFile:MF_BUNDLED_RESOURCE(@"FPKReaderBundle", @"img_overflow_phone", @"png")];
-// }
-
items = [[NSMutableArray alloc]init]; // This will be the containter for the bar button items.
if(UI_USER_INTERFACE_IDIOM() == UIUserInterfaceIdiomPad) { // Ipad.
-
// Dismiss.
aButton = [UIButton buttonWithType:UIButtonTypeCustom];
aButton.bounds = CGRectMake( 0, 0, 34 , 30);
- UIImage *image = [UIImage imageWithContentsOfFile:MF_BUNDLED_RESOURCE(@"FPKReaderBundle",@"X",@"png")];
- [aButton setImage:image forState:UIControlStateNormal];
+ [aButton setImage:self.imgDismiss forState:UIControlStateNormal];
[aButton addTarget:self action:@selector(actionDismiss:) forControlEvents:UIControlEventTouchUpInside];
aBarButtonItem = [[UIBarButtonItem alloc] initWithCustomView:aButton];
@@ -1297,9 +1317,8 @@ -(void)prepareToolbar {
// Text.
aButton = [UIButton buttonWithType:UIButtonTypeCustom];
aButton.bounds = CGRectMake( 0, 0, 34 , 30);
- image = [UIImage imageWithContentsOfFile:MF_BUNDLED_RESOURCE(@"FPKReaderBundle",@"text",@"png")];
- [aButton setImage:image forState:UIControlStateNormal];
+ [aButton setImage:self.imgText forState:UIControlStateNormal];
[aButton addTarget:self action:@selector(actionText:) forControlEvents:UIControlEventTouchUpInside];
aBarButtonItem = [[UIBarButtonItem alloc] initWithCustomView:aButton];
@@ -1312,10 +1331,8 @@ -(void)prepareToolbar {
// Outline.
aButton = [UIButton buttonWithType:UIButtonTypeCustom];
aButton.bounds = CGRectMake( 0, 0, 34 , 30);
- image = [UIImage imageWithContentsOfFile:MF_BUNDLED_RESOURCE(@"FPKReaderBundle",@"indice",@"png")];
-
-
- [aButton setImage:image forState:UIControlStateNormal];
+
+ [aButton setImage:self.imgOutline forState:UIControlStateNormal];
[aButton addTarget:self action:@selector(actionOutline:) forControlEvents:UIControlEventTouchUpInside];
aBarButtonItem = [[UIBarButtonItem alloc] initWithCustomView:aButton];
@@ -1329,9 +1346,8 @@ -(void)prepareToolbar {
aButton = [UIButton buttonWithType:UIButtonTypeCustom];
aButton.bounds = CGRectMake( 0, 0, 34 , 30);
- image = [UIImage imageWithContentsOfFile:MF_BUNDLED_RESOURCE(@"FPKReaderBundle",@"bookmark_add",@"png")];
- [aButton setImage:image forState:UIControlStateNormal];
+ [aButton setImage:self.imgBookmark forState:UIControlStateNormal];
[aButton addTarget:self action:@selector(actionBookmarks:) forControlEvents:UIControlEventTouchUpInside];
aBarButtonItem = [[UIBarButtonItem alloc] initWithCustomView:aButton];
@@ -1345,9 +1361,8 @@ -(void)prepareToolbar {
aButton = [UIButton buttonWithType:UIButtonTypeCustom];
aButton.bounds = CGRectMake( 0, 0, 34 , 30);
- image = [UIImage imageWithContentsOfFile:MF_BUNDLED_RESOURCE(@"FPKReaderBundle",@"search",@"png")];
- [aButton setImage:image forState:UIControlStateNormal];
+ [aButton setImage:self.imgSearch forState:UIControlStateNormal];
[aButton addTarget:self action:@selector(actionSearch:) forControlEvents:UIControlEventTouchUpInside];
aBarButtonItem = [[UIBarButtonItem alloc] initWithCustomView:aButton];
@@ -1365,9 +1380,8 @@ -(void)prepareToolbar {
aButton = [UIButton buttonWithType:UIButtonTypeCustom];
aButton.bounds = CGRectMake( 0, 0, 30 , 24);
- UIImage *image = [UIImage imageWithContentsOfFile:MF_BUNDLED_RESOURCE(@"FPKReaderBundle",@"X_phone",@"png")];
-
- [aButton setImage:image forState:UIControlStateNormal];
+
+ [aButton setImage:self.imgDismiss forState:UIControlStateNormal];
[aButton addTarget:self action:@selector(actionDismiss:) forControlEvents:UIControlEventTouchUpInside];
aBarButtonItem = [[UIBarButtonItem alloc] initWithCustomView:aButton];
@@ -1450,10 +1464,8 @@ -(void)prepareToolbar {
// Text.
aButton = [UIButton buttonWithType:UIButtonTypeCustom];
aButton.bounds = CGRectMake( 0, 0, 25 , 25);
- image = [UIImage imageWithContentsOfFile:MF_BUNDLED_RESOURCE(@"FPKReaderBundle",@"text_phone",@"png")];
-
- [aButton setImage:image forState:UIControlStateNormal];
+ [aButton setImage:self.imgText forState:UIControlStateNormal];
[aButton addTarget:self action:@selector(actionText:) forControlEvents:UIControlEventTouchUpInside];
aBarButtonItem = [[UIBarButtonItem alloc] initWithCustomView:aButton];
@@ -1468,10 +1480,8 @@ -(void)prepareToolbar {
// Outline.
aButton = [UIButton buttonWithType:UIButtonTypeCustom];
aButton.bounds = CGRectMake( 0, 0, 24 , 24);
- image = [UIImage imageWithContentsOfFile:MF_BUNDLED_RESOURCE(@"FPKReaderBundle",@"indice_phone",@"png")];
-
- [aButton setImage:image forState:UIControlStateNormal];
+ [aButton setImage:self.imgOutline forState:UIControlStateNormal];
[aButton addTarget:self action:@selector(actionOutline:) forControlEvents:UIControlEventTouchUpInside];
aBarButtonItem = [[UIBarButtonItem alloc] initWithCustomView:aButton];
@@ -1487,9 +1497,8 @@ -(void)prepareToolbar {
aButton = [UIButton buttonWithType:UIButtonTypeCustom];
aButton.bounds = CGRectMake( 0, 0, 24 , 24);
- image = [UIImage imageWithContentsOfFile:MF_BUNDLED_RESOURCE(@"FPKReaderBundle",@"bookmark_add_phone",@"png")];
- [aButton setImage:image forState:UIControlStateNormal];
+ [aButton setImage:self.imgBookmark forState:UIControlStateNormal];
[aButton addTarget:self action:@selector(actionBookmarks:) forControlEvents:UIControlEventTouchUpInside];
aBarButtonItem = [[UIBarButtonItem alloc] initWithCustomView:aButton];
@@ -1504,10 +1513,8 @@ -(void)prepareToolbar {
aButton = [UIButton buttonWithType:UIButtonTypeCustom];
aButton.bounds = CGRectMake( 0, 0, 24 , 24);
- image = [UIImage imageWithContentsOfFile:MF_BUNDLED_RESOURCE(@"FPKReaderBundle",@"search_phone",@"png")];
-
- [aButton setImage:image forState:UIControlStateNormal];
+ [aButton setImage:self.imgSearch forState:UIControlStateNormal];
[aButton addTarget:self action:@selector(actionSearch:) forControlEvents:UIControlEventTouchUpInside];
aBarButtonItem = [[UIBarButtonItem alloc] initWithCustomView:aButton];
@@ -1535,28 +1542,6 @@ -(void)prepareToolbar {
// Implement viewDidLoad to do additional setup after loading the view, typically from a nib.
- (void)viewDidLoad {
- //UIFont *font = nil;
- UIView * aContainerView = nil;
-
- UIToolbar *aThumbSliderToolbar = nil;
- UISlider *aSlider = nil;
- UILabel * aLabel = nil;
-
- // NSMutableArray * aThumbImgArray = nil;
-
- CGFloat thumbSliderOffsetX = 0 ;
- CGFloat thumbSliderHeight = 0;
- CGFloat thumbSliderOffsetY = 0;
- CGFloat thumbSliderToolbarHeight= 0;
-
- NSUInteger pagesCount = 0;
- int paddingSlider = 0;
-
- BOOL isPad = NO;
-#ifdef UI_USER_INTERFACE_IDIOM
- isPad = (UI_USER_INTERFACE_IDIOM() == UIUserInterfaceIdiomPad);
-#endif
-
// Defaulting the flags.
pdfOpen = YES;
@@ -1569,150 +1554,11 @@ - (void)viewDidLoad {
[super viewDidLoad];
+ [self loadResources];
[self prepareToolbar];
-
}
-//-(void)viewDidLoad {
-//
-// //
-// // Let the superclass do its stuff (setting up the views), then you can begin to add your own custom subviews
-// // like buttons.
-//
-// [super viewDidLoad];
-//
-// // A few flags.
-// [[UIApplication sharedApplication] setStatusBarHidden:YES withAnimation:YES];
-//
-// pdfIsOpen = YES;
-// hudHidden=YES;
-// visibleMultimedia = NO;
-//
-// // Slighty different font sizes on iPad and iPhone.
-//
-// UIFont *font = nil;
-//
-// BOOL isPad = NO;
-//
-//#ifdef UI_USER_INTERFACE_IDIOM
-// isPad = (UI_USER_INTERFACE_IDIOM() == UIUserInterfaceIdiomPad);
-//#endif
-//
-// if(isPad) {
-// font = [UIFont systemFontOfSize:[UIFont systemFontSize]];
-// } else {
-// font = [UIFont systemFontOfSize:[UIFont smallSystemFontSize]];
-// }
-//
-// CGFloat thumbSliderOffsetX = 0 ;
-// CGFloat thumbSliderHeight = 0;
-// CGFloat thumbSliderOffsetY = 0;
-// CGFloat thumbSliderToolbarHeight= 0;
-//
-// UIView * aThumbSliderView = nil;
-//
-// if(UI_USER_INTERFACE_IDIOM() == UIUserInterfaceIdiomPad) {
-//
-// // Initialize the thumb slider containter view.
-//
-// aThumbSliderView = [[UIView alloc]initWithFrame:CGRectMake(0, self.view.frame.size.height, self.view.bounds.size.width,204)];
-// thumbSliderToolbarHeight = 44; // Height of the thumb that include the slider.
-// thumbSliderViewBorderWidth = 100;
-// thumbSliderHeight = 20 ; // Height of the slider.
-//
-// thumbSliderOffsetY = aThumbSliderView.frame.size.height-44; // Vertical offset of the toolbar.
-// thumbSliderOffsetX = thumbSliderOffsetY + 10; // Horizontal offset of the toolbar.
-//
-// } else {
-//
-// aThumbSliderView = [[UIView alloc]initWithFrame:CGRectMake(0, self.view.frame.size.height, self.view.bounds.size.width, 114)];
-// thumbSliderToolbarHeight = 44;
-// thumbSliderViewBorderWidth = 50;
-// thumbSliderHeight = 10;
-// thumbSliderOffsetY = aThumbSliderView.frame.size.height-44;
-// thumbSliderOffsetX = thumbSliderOffsetY + 10;
-//
-// }
-//
-//
-// [aThumbSliderView setAutoresizingMask:UIViewAutoresizingFlexibleWidth|UIViewAutoresizingFlexibleTopMargin];
-// [aThumbSliderView setAutoresizesSubviews:YES];
-// [aThumbSliderView setBackgroundColor:[UIColor colorWithRed:0.0 green:0.0 blue:0.0 alpha:0.3]];
-//
-// UIToolbar *aThumbSliderToolbar = [[UIToolbar alloc] initWithFrame:CGRectMake(0, thumbSliderOffsetY, self.view.frame.size.width, thumbSliderToolbarHeight)];
-// [aThumbSliderToolbar setAutoresizingMask:UIViewAutoresizingFlexibleTopMargin|UIViewAutoresizingFlexibleWidth];
-// aThumbSliderToolbar.barStyle = UIBarStyleBlackTranslucent;
-//
-// [aThumbSliderView addSubview:aThumbSliderToolbar];
-// [aThumbSliderToolbar release];
-//
-// int paddingSlider = 0;
-// if(UI_USER_INTERFACE_IDIOM() != UIUserInterfaceIdiomPad) {
-// paddingSlider = 10;
-// }
-//
-//
-// //Page slider.
-// UISlider *aSlider = [[UISlider alloc]initWithFrame:CGRectMake((thumbSliderViewBorderWidth/2)-paddingSlider, thumbSliderOffsetX, aThumbSliderView.frame.size.width-thumbSliderViewBorderWidth-(paddingSlider*2),thumbSliderHeight)];
-// [aSlider setAutoresizingMask:UIViewAutoresizingFlexibleBottomMargin|UIViewAutoresizingFlexibleWidth];
-// [aSlider setBackgroundColor:[UIColor colorWithRed:0.0 green:0.0 blue:0.0 alpha:0.0]];
-// [aSlider setMinimumValue:1.0];
-// [aSlider setMaximumValue:[[self document] numberOfPages]];
-// [aSlider setContinuous:YES];
-// [aSlider addTarget:self action:@selector(actionPageSliderSlided:) forControlEvents:UIControlEventValueChanged];
-// [aSlider addTarget:self action:@selector(actionPageSliderStopped:) forControlEvents:UIControlEventTouchUpInside];
-//
-// [self setPageSlider:aSlider];
-//
-// [aThumbSliderView addSubview:aSlider];
-//
-// [aSlider release];
-//
-//
-// if(UI_USER_INTERFACE_IDIOM() != UIUserInterfaceIdiomPad) {
-//
-// // Set the number of page into the toolbar at the right the slider on iPhone.
-// UILabel * aLabel = [[UILabel alloc]initWithFrame:CGRectMake((thumbSliderViewBorderWidth/2)+(aThumbSliderView.frame.size.width-thumbSliderViewBorderWidth)-25, thumbSliderOffsetX+6, 55, thumbSliderHeight)];
-// [aLabel setAutoresizingMask:UIViewAutoresizingFlexibleLeftMargin];
-// aLabel.text = PAGE_NUM_LABEL_TEXT([self page],[[self document]numberOfPages]);
-// aLabel.textAlignment = UITextAlignmentCenter;
-// aLabel.backgroundColor = [UIColor clearColor];
-// aLabel.textColor = [UIColor whiteColor];
-// aLabel.font = [UIFont boldSystemFontOfSize:11.0];
-// [aThumbSliderView addSubview:aLabel];
-// self.pageNumLabel = aLabel;
-// [aLabel release];
-// }
-//
-// [self.view addSubview:aThumbSliderView];
-//
-// self.thumbSliderViewHorizontal = aThumbSliderView;
-//
-// [aThumbSliderView release];
-//
-//
-// // Now prepare an image array to display as placeholder for the thumbs.
-//
-// NSMutableArray * aThumbImgArray = [[NSMutableArray alloc]init];
-//
-// NSUInteger pagesCount = [[self document]numberOfPages];
-//
-// for (int i=0; i<pagesCount ; i++) {
-// [aThumbImgArray insertObject:[NSNull null] atIndex:i];
-// }
-//
-// self.thumbImgArray = aThumbImgArray;
-//
-// [aThumbImgArray release];
-//
-// // Utility method to prepare the rollaway toolbar.
-//
-// [self prepareToolbar];
-//
-//}
-
-
-(void)setNumberOfPageToolbar{
NSString *labelTitle = nil;
@@ -1721,7 +1567,7 @@ -(void)setNumberOfPageToolbar{
labelTitle = PAGE_NUM_LABEL_TEXT([self page],[[self document]numberOfPages]);
- }else{
+ } else {
labelTitle = PAGE_NUM_LABEL_TEXT_PHONE([self page],[[self document]numberOfPages]);
}
@@ -1733,21 +1579,22 @@ -(void)showToolbar {
// Show toolbar, with animation.
- rollawayToolbar.hidden = NO;
[UIView beginAnimations:@"show" context:NULL];
[UIView setAnimationDuration:0.35];
[UIView setAnimationCurve:UIViewAnimationCurveEaseInOut];
- [rollawayToolbar setFrame:CGRectMake(0, 20, rollawayToolbar.frame.size.width, toolbarHeight)];
+ [self.rollawayToolbar setHidden:NO];
+ [self.rollawayToolbar setFrame:CGRectMake(0, 20, rollawayToolbar.frame.size.width, toolbarHeight)];
[UIView commitAnimations];
}
-(void)hideToolbar{
// Hide the toolbar, with animation.
+
[UIView beginAnimations:@"show" context:NULL];
[UIView setAnimationDuration:0.35];
[UIView setAnimationCurve:UIViewAnimationCurveEaseInOut];
- [rollawayToolbar setFrame:CGRectMake(0, -toolbarHeight, rollawayToolbar.frame.size.width, toolbarHeight)];
+ [self.rollawayToolbar setFrame:CGRectMake(0, -toolbarHeight, rollawayToolbar.frame.size.width, toolbarHeight)];
[UIView commitAnimations];
}
@@ -1759,139 +1606,14 @@ -(void)viewWillAppear:(BOOL)animated {
}
-#pragma mark - TVThumbnailScrollViewDelegate methods
-
-
-
-//- (void)didTappedOnPage:(int)number ofType:(int)type withObject:(id)object{
-// [self setPage:number];
-//}
-//
-//- (void)didSelectedPage:(int)number ofType:(int)type withObject:(id)object{
-//}
-
-#pragma mark -
-
-
-
-//-(void)handleThumbDone {
-//
-// // [self.thumbsliderHorizontal updateThumbnailViewWithPage:currentThumbPage];
-// // Start next thumbnail operation or abort.
-//
-// if(currentThumbPage < [[self document]numberOfPages]) {
-//
-// currentThumbPage++;
-// [self performSelectorInBackground:@selector(startThumb) withObject:nil];
-//
-// } else {
-//
-// self.thumbFileManager = nil;
-//
-// }
-//}
-//
-//-(void)startThumb {
-//
-// NSString * thumbnailFilePath = nil;
-//
-// CGImageRef thumbImage = NULL;
-// UIImage * thumbnailImage = nil;
-// NSData * imageData = nil;
-//
-// NSAutoreleasePool * pool = [[NSAutoreleasePool alloc]init];
-//
-// thumbnailFilePath = [MFHorizontalSlider thumbnailImagePathForPage:currentThumbPage documentId:documentId];
-//
-// if(![self.thumbFileManager fileExistsAtPath:thumbnailFilePath] && pdfOpen) {
-//
-// thumbImage = [[self document] createImageForThumbnailOfPageNumber:currentThumbPage ofSize:CGSizeMake(70, 91) andScale:1.0]; // You are responsible for releasing this CGImage.
-//
-// thumbnailImage = [[UIImage alloc]initWithCGImage:thumbImage];
-//
-// imageData = UIImagePNGRepresentation(thumbnailImage);
-// //imageData = UIImageJPEGRepresentation(thumbnailImage,0.8); // JPEG version (will not have alfa).
-//
-// [self.thumbFileManager createFileAtPath:thumbnailFilePath contents:imageData attributes:nil];
-//
-// CGImageRelease(thumbImage);
-// [thumbnailImage release];
-// }
-//
-// [pool release];
-//
-// [self performSelectorOnMainThread:@selector(handleThumbDone) withObject:nil waitUntilDone:NO];
-//}
-
-//-(void)generateThumbInBackground {
-//
-// NSFileManager * fileManager = nil;
-//
-// NSAutoreleasePool * pool = [[NSAutoreleasePool alloc]init];
-// NSString * thumbFolderPath = [MFHorizontalSlider thumbnailFolderPathForDocumentId:self.documentId];
-//
-// BOOL isDir = NO;
-// NSError * error = nil;
-//
-// fileManager = [[NSFileManager alloc]init];
-//
-// if(![fileManager fileExistsAtPath:thumbFolderPath isDirectory:&isDir]) { // Does not exist.
-//
-// if(![fileManager createDirectoryAtPath:thumbFolderPath withIntermediateDirectories:YES attributes:nil error:&error]) {
-//
-// // Disable thumb here.
-//
-// }
-//
-// } else { // Exist...
-//
-// if(!isDir) { // ... but is not a directory.
-//
-// if(![fileManager removeItemAtPath:thumbFolderPath error:&error]) {
-//
-// // Disable thumb here.
-//
-// } else { // File successfully deleted.
-//
-// if(![fileManager createDirectoryAtPath:thumbFolderPath withIntermediateDirectories:YES attributes:nil error:&error]) {
-//
-// // Disable thumb here.
-//
-// }
-// }
-// }
-// }
-//
-// self.thumbFileManager = fileManager;
-// //self.thumbnailFolderPath = thumbFolderPath;
-//
-// currentThumbPage = 1;
-//
-// [self performSelectorInBackground:@selector(startThumb) withObject:nil]; // Start the actual thumbnail generation.
-//
-// // Cleanup.
-//
-// [fileManager release];
-// [pool release];
-//}
-
-/*
- // Override to allow orientations other than the default portrait orientation.
- - (BOOL)shouldAutorotateToInterfaceOrientation:(UIInterfaceOrientation)interfaceOrientation {
- // Return YES for supported orientations
- return (interfaceOrientation == UIInterfaceOrientationPortrait);
- }
- */
-(id)initWithDocumentManager:(MFDocumentManager *)aDocumentManager {
// Here we call the superclass initWithDocumentManager passing the very same MFDocumentManager
// we used to initialize this class. However, since you probably want to track which document are
// handling to synchronize bookmarks and the like, you can easily use your own wrapper for the MFDocumentManager
// as long as you pass an instance of it to the superclass initializer.
-
- NSLog(@"Version %@",[MFDocumentManager version]);
-
+
if((self = [super initWithDocumentManager:aDocumentManager])) {
[self setDocumentDelegate:self];
}
@@ -1905,6 +1627,36 @@ - (void)didReceiveMemoryWarning {
self.searchViewController = nil;
[super didReceiveMemoryWarning];
+
+ if(!self.isViewLoaded) {
+
+ // This will be called in place of viewDidUnload on iOS 6
+
+ self.pageSlider = nil;
+ self.miniSearchView = nil;
+ self.pageNumLabel = nil;
+ self.numberOfPageTitleToolbar = nil;
+
+ self.rollawayToolbar = nil;
+
+ // Button and bar buttons
+
+ self.changeModeBarButtonItem = nil;
+ self.zoomLockBarButtonItem = nil;
+ self.changeDirectionBarButtonItem = nil;
+ self.changeLeadBarButtonItem = nil;
+ self.searchBarButtonItem = nil;
+ self.textBarButtonItem = nil;
+ self.numberOfPageTitleBarButtonItem = nil;
+ self.outlineBarButtonItem = nil;
+ self.bookmarkBarButtonItem = nil;
+ self.dismissBarButtonItem = nil;
+
+ self.changeModeButton = nil;
+ self.zoomLockButton = nil;
+ self.changeDirectionButton = nil;
+ self.changeLeadButton = nil;
+ }
}
- (void)viewDidUnload {
@@ -1914,6 +1666,8 @@ - (void)viewDidUnload {
self.pageNumLabel = nil;
self.numberOfPageTitleToolbar = nil;
+ self.rollawayToolbar = nil;
+
// Button and bar buttons
self.changeModeBarButtonItem = nil;
@@ -1937,18 +1691,22 @@ - (void)viewDidUnload {
- (void)dealloc {
- // UI elements.
+ // UI images.
[imgModeSingle release];
[imgModeDouble release];
[imgModeOverflow release];
-
[imgZoomLock release];
[imgZoomUnlock release];
[imgl2r release];
[imgr2l release];
[imgLeadRight release];
[imgLeadLeft release];
+ [imgBookmark release];
+ [imgDismiss release];
+ [imgText release];
+ [imgSearch release];
+ [imgOutline release];
[rollawayToolbar release];
@@ -1965,12 +1723,15 @@ - (void)dealloc {
[bookmarkBarButtonItem release], bookmarkBarButtonItem = nil;
[dismissBarButtonItem release], dismissBarButtonItem = nil;
+ // Inner buttons.
+
[zoomLockButton release],zoomLockButton = nil;
[changeModeButton release],changeModeButton = nil;
[changeLeadButton release],changeLeadButton = nil;
[changeDirectionButton release],changeDirectionButton = nil;
// Popovers.
+
[reusablePopover release];
[numberOfPageTitleBarButtonItem release];
View
1 Classes/Reader/ThumbnailSlider/TVThumbnailScrollView.m
@@ -132,6 +132,7 @@ -(void)handleThumbDone:(UIImage *)image {
NSUInteger page;
+
TVThumbnailView * view = [thumbnailViews objectAtIndex:currentPosition%[thumbnailViews count]];
if(view.position==currentPosition) {
View
4 Resources/FastPdfKit_Kiosk-Info.plist
@@ -38,7 +38,7 @@
</dict>
</dict>
<key>CFBundleIdentifier</key>
- <string>com.mobfarm.fastpdfkit.kiosk</string>
+ <string>com.OBDS.AviationDocs</string>
<key>CFBundleInfoDictionaryVersion</key>
<string>6.0</string>
<key>CFBundleName</key>
@@ -78,6 +78,8 @@
<string>UIInterfaceOrientationPortrait</string>
<string>UIInterfaceOrientationPortraitUpsideDown</string>
</array>
+ <key>FPKLicenseKey</key>
+ <string>59426b171b66a75b69c2b4fea49ccc8f65723dac</string>
<key>UISupportedInterfaceOrientations~ipad</key>
<array>
<string>UIInterfaceOrientationPortrait</string>

0 comments on commit 5992b47

Please sign in to comment.