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

--

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

4

1 回答 1

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;


}
于 2014-02-19T08:50:35.050 回答