title: 3D Touch Home Shortcuts In Obj-C
body: <p>All of my apps are currently written in Obj-C.  The link <a href="https://developer.apple.com/library/content/samplecode/ApplicationShortcuts/Introduction/Intro.html#//apple_ref/doc/uid/TP40016545" rel="nofollow noreferrer">https://developer.apple.com/library/content/samplecode/ApplicationShortcuts/Introduction/Intro.html#//apple_ref/doc/uid/TP40016545</a> for the sample code of implementing Home Screen Shortcuts with 3D Touch is completely compiled in Swift.  Anyone come across documentation for Obj-C, so I don't have to go through my AppDelegate and translate it all?</p>
  
  <p>UPDATE:</p>
  
  <p>After adding in all the shortcuts in Info.plist, I added in the AppDelegate.m:</p>
  
  <pre><code>- (void)application:(UIApplication *)application performActionForShortcutItem:(UIApplicationShortcutItem *)shortcutItem completionHandler:(void (^)(BOOL))completionHandler {
      UINavigationController *nav = (UINavigationController *) self.tabBarController.selectedViewController;
  
      NSLog(@"%@", shortcutItem.type);
      if ([shortcutItem.type isEqualToString:@"com.316apps.iPrayed.addPrayerRequest"]) {
          Requests *gonow = [[Requests alloc] init];
  
          [nav pushViewController:gonow animated:YES];
  
      }
      if ([shortcutItem.type isEqualToString:@"com.316apps.iPrayed.addPrayer"]) {
  
        PrayerStats *controller = [[PrayerStats alloc] init];
          [nav pushViewController:controller animated:YES];
  
      }
  
      if ([shortcutItem.type isEqualToString:@"com.316apps.iPrayed.addFast"]) {
  
        FastStats *controller1 = [[FastStats alloc] init];
          [nav pushViewController:controller1 animated:YES];
  
      }
  
      if ([shortcutItem.type isEqualToString:@"com.316apps.iPrayed.addStudy"]) {
  
        StudyStats *controller2 = [[StudyStats alloc] init];
          [nav pushViewController:controller2 animated:YES];
  
      }
     }
  </code></pre>
  
  <p>This allows it to work, without putting any other methods in, or adding anything to didFinishLaunchingWithOptions.</p>