title: "Missing Context for Method Declaration" message in Xcode for - (BOOL)
body: <p>I'm creating an app in Objective-C coding using Xcode. I am implementing the Moodstocks scanner into my app and have followed all the directions given in their step-by-step instructions. However, I keep getting a "missing context for method declaration" message for this one - (BOOL) part. Please be patient with me, I have no coding experience and have been making this app all on my own. Thank you. </p>
  
  <p>Here's the section I'm having issues with:</p>
  
  <pre><code>    //  TBAAppDelegate.h
     #import "ScannerViewController.h"
  
      - (BOOL)application:(UIApplication *)application didFinishLaunchingWithOptions:(NSDictionary *)launchOptions
  
      {
  self.window = [[UIWindow alloc] initWithFrame:[[UIScreen mainScreen] bounds]];
  ScannerViewController *scannerVC = [[ScannerViewController alloc] init];
  scannerVC.scanner = _scanner;
  self.window.rootViewController = scanner.VC;
  [self.window makeKeyandVisible];
  return YES;
      }
  </code></pre>
  
  <p>Okay, here's what the instructions I've been following say as well:</p>
  
  <pre><code>     // AppDelegate.h
  
      #import "ScannerViewController.h"
  
      - (BOOL)application:(UIApplication *)application didFinishLaunchingWithOptions:(NSDictionary *)launchOptions
      {
          // ...
          self.window = [[UIWindow alloc] initWithFrame:[[UIScreen mainScreen] bounds]];
          ScannerViewController *scannerVC = [[ScannerViewController alloc] init];
          scannerVC.scanner = _scanner;
          self.window.rootViewController = scannerVC;
          [self.window makeKeyAndVisible];
          return YES;
      }
  </code></pre>