QuickBlocks QBSettings获得未声明的标识符

时间:2014-07-06 17:14:50

标签: ios objective-c quickblox undeclared-identifier

我已经包含了API框架但仍然出错:使用未声明的标识符' QBSettings'在AppDelegate.m文件中。

#import <FYX/FYX.h>
#import "AppDelegate.h"
#import "ApplicationContext.h"
#import "EnableProximityViewController.h"
#import "LoginViewController.h"




@implementation AppDelegate

@synthesize window = _window;
@synthesize loginViewController;

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

// Set QuickBlox credentials (You must create application in admin.quickblox.com)
[QBSettings setApplicationID:11948];
[QBSettings setAuthorizationKey:@"SHdXhhjVY7BL-GtGH"];
[QBSettings setAuthorizationSecret:@"3ZYjkXTzaUfd6kLTL"];
[QBSettings setAccountKey:@"yFHpgFbxe3hjkMXmjs9sv9u"];

1 个答案:

答案 0 :(得分:1)

找到答案......

转到App-Name.pch,然后将导入添加到Framework文件中。这就是它回链接的方式。

       #import <Quickblox/Quickblox.h>