Permalink
Browse files

Fixed PDFDemo, closes #11

  • Loading branch information...
odrobnik committed Oct 4, 2012
1 parent b32fa1e commit eb037c48b747f1c4ec4e43e0ca2b71714406c487
@@ -24,8 +24,6 @@
<string>1.0</string>
<key>LSRequiresIPhoneOS</key>
<true/>
- <key>UIMainStoryboardFile</key>
- <string>MainStoryboard</string>
<key>UIRequiredDeviceCapabilities</key>
<array>
<string>armv7</string>
@@ -7,14 +7,19 @@
//
#import "AppDelegate.h"
+#import "ViewController.h"
@implementation AppDelegate
- (BOOL)application:(UIApplication *)application didFinishLaunchingWithOptions:(NSDictionary *)launchOptions
{
-
-
-
+ self.window = [[UIWindow alloc] initWithFrame:[[UIScreen mainScreen] applicationFrame]];
+
+ ViewController *viewController = [[ViewController alloc] init];
+
+ self.window.rootViewController = viewController;
+
+ [self.window makeKeyAndVisible];
// Override point for customization after application launch.
return YES;
@@ -28,8 +28,6 @@ - (id)initWithPDFPage:(DTPDFPage *)PDFPage
_PDFPage = PDFPage;
_imageView = [[UIImageView alloc] initWithFrame:CGRectZero];
- _imageView.layer.borderWidth = 3;
- _imageView.layer.borderColor = [[UIColor blueColor] CGColor];
_imageView.contentMode = UIViewContentModeScaleAspectFit;
[self addSubview:_imageView];
}
@@ -45,8 +45,6 @@ - (void)viewWillAppear:(BOOL)animated
[super viewWillAppear:animated];
self.view.alpha = 1;
-
- NSLog(@"appear");
}
@end

0 comments on commit eb037c4

Please sign in to comment.