-1
#import "AppDelegate.h"
#import "Scringo/scringo.h"

@implementation AppDelegate

- (BOOL)application:(UIApplication *)application didFinishLaunchingWithOptions:(NSDictionary *)launchOptions
{
    // Override point for customization after application launch.
    return YES;

    [Scringo initWithAppId:@"" completion:nil];

}

- (void)applicationWillResignActive:(UIApplication *)application
{
    // Sent when the application is about to move from active to inactive state. This can occur for certain types of temporary interruptions (such as an incoming phone call or SMS message) or when the user quits the application and it begins the transition to the background state.
    // Use this method to pause ongoing tasks, disable timers, and throttle down OpenGL ES frame rates. Games should use this method to pause the game.
}

--

Is this the correct spot? the sidebar doesn't slide out in the emulator and I'm not getting any errors?… help

rmaddy
  • 314,917
  • 42
  • 532
  • 579
  • 3
    Putting code after the `return` statement is pointless. It will never be reached. – rmaddy Feb 19 '14 at 00:32
  • Then where should i put it ? when i put it over the return yes the app just crashes... – user3239649 Feb 19 '14 at 04:00
  • I have no idea what the line is supposed to or where it should be called but try putting it before the call to `return`. – rmaddy Feb 19 '14 at 04:01
  • just tried it before the return and it just crashes but when i take it out it runs just fine – user3239649 Feb 19 '14 at 04:05
  • Try finding documentation on Scringo. Perhaps its documentation tells you how to use it. – rmaddy Feb 19 '14 at 04:06
  • Init Scringo in your code Open up your AppDelegate.m file and add the following line to the imports section: #import Then add the following inside your application:didFinishLaunchingWithOptions: method: [Scringo initWithAppId:@"YOUR_SCRINGO_APP_ID" completion:nil]; – user3239649 Feb 19 '14 at 04:07
  • You said it crashes when you put it before the return. What is the crash message ? – CW0007007 Feb 19 '14 at 08:53

1 Answers1

0

Use before return statement,

-(BOOL)application:(UIApplication *)application didFinishLaunchingWithOptions:(NSDictionary *)launchOptions

{
    [Scringo initWithAppId:@"YOUR_SCRINGO_APP_ID" completion:nil];
    // Override point for customization after application launch.
    return YES;


}
Gajendra Rawat
  • 3,673
  • 2
  • 19
  • 36