Permalink
Browse files

simplify code

  • Loading branch information...
1 parent 41c000f commit ec36f966fd29de1bed055e424adc86f775438d57 @steipete steipete committed Mar 4, 2014
Showing with 3 additions and 11 deletions.
  1. +3 −11 Examples/PSPDFCatalog/PSCAppDelegate.m
@@ -91,9 +91,9 @@ - (BOOL)application:(UIApplication *)application didFinishLaunchingWithOptions:(
#if !defined(CONFIGURATION_Debug) && defined(PSPDF_USE_SOURCE) && defined(HOCKEY_ENABLED)
dispatch_async(dispatch_get_main_queue(), ^{
NSLog(@"This example project uses HockeyApp for crash reports and Localytics for user statistics. Make sure to either remove that or change the identifiers before shipping your app, if you use PSPDFCatalog/PSPDFKiosk as the foundation of your application.");
- [[BITHockeyManager sharedHockeyManager] configureWithIdentifier:@"fa73e1f8f3806bcb3466c5ab16d70768" delegate:nil];
- [[BITHockeyManager sharedHockeyManager] crashManager].crashManagerStatus = BITCrashManagerStatusAutoSend;
- [[BITHockeyManager sharedHockeyManager] startManager];
+ [BITHockeyManager.sharedHockeyManager configureWithIdentifier:@"fa73e1f8f3806bcb3466c5ab16d70768" delegate:nil];
+ [BITHockeyManager.sharedHockeyManager crashManager].crashManagerStatus = BITCrashManagerStatusAutoSend;
+ [BITHockeyManager.sharedHockeyManager startManager];
});
#endif
return YES;
@@ -112,7 +112,6 @@ - (BOOL)handleOpenURL:(NSURL *)launchURL {
[self.catalog popToRootViewControllerAnimated:NO];
[self.catalog pushViewController:pdfController animated:NO];
return YES;
-
// Only show alert if there's content.
}else if ([launchURL.scheme.lowercaseString isEqualToString:@"pspdfcatalog"] && launchURL.absoluteString.length > @"pspdfcatalog://".length) {
[[[UIAlertView alloc] initWithTitle:@"Custom Protocol Handler" message:launchURL.absoluteString delegate:nil cancelButtonTitle:@"Ok" otherButtonTitles:nil] show];
@@ -127,13 +126,6 @@ - (PSPDFViewController *)viewControllerForDocument:(PSPDFDocument *)document {
return pdfController;
}
-// If you need to block certain interface orientation, that's the place you want to add it.
-/*
- - (NSUInteger)application:(UIApplication *)application supportedInterfaceOrientationsForWindow:(UIWindow *)window {
- return UIInterfaceOrientationMaskPortrait;
- }
- */
-
#pragma mark - BITUpdateManagerDelegate
#ifdef HOCKEY_ENABLED
- (NSString *)customDeviceIdentifierForUpdateManager:(BITUpdateManager *)updateManager {

0 comments on commit ec36f96

Please sign in to comment.