我在哪里放[Scringo initWithAppId:@“”completion:nil];

时间:2014-02-19 00:31:55

标签: ios sidebar scringo

#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.
}

-

这是正确的位置吗?侧边栏不会在模拟器中滑出,我没有收到任何错误?...帮助

1 个答案:

答案 0 :(得分:0)

在return语句之前使用

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

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


}