【问题标题】:Can't initialize RMConnectCenter of RenRen SDK无法初始化人人 SDK 的 RMConnectCenter
【发布时间】:2013-03-26 11:49:37
【问题描述】:

我尝试用 SocialPlugin 文档制作人人 iOS 应用。

http://wiki.mobile.renren.com/en/index.php/Social_Plugin_Download

我在下面制作了 AppDelegate。但是每次我调用应用程序时,它都会失败 在 RMConnectCenter 处初始化ConnectWithAPIKey。

代码是这样的。

--noriakiAppDelegate.h--

#import <UIKit/UIKit.h>
#import "RMConnectCenter.h"

@class noriakiViewController;


@interface noriakiAppDelegate : UIResponder <UIApplicationDelegate,RenrenMobileDelegate>


@property (strong, nonatomic) UIWindow *window;
@property (strong, nonatomic) noriakiViewController *noriakiviewcontroller;


@end

--noriakiAppDelegate.h.m--

#import "noriakiAppDelegate.h"
#import "noriakiViewController.h"


@implementation noriakiAppDelegate
@synthesize window = _window;
@synthesize noriakiviewcontroller = _noriakiviewcontroller;

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

    [RMConnectCenter initializeConnectWithAPIKey:@"MY API KEY" secretKey:@"MY SECRET" appId:@"2080970" mobileDelegate:self];


    return YES;
}

【问题讨论】:

    标签: ios objective-c xcode4.2


    【解决方案1】:

    您的意思是调用 initializeConnectWithAPIKey 时应用程序崩溃?

    您没有传递您的 API 密钥和秘密

    [RMConnectCenter initializeConnectWithAPIKey:@"MY API KEY" secretKey:@"MY SECRET" appId:@"2080970" mobileDelegate:self];
    

    你在使用故事板吗?

    【讨论】:

    • 抱歉回复晚了。实际上,我通过替换真正的键传递了两个键。上面的代码是替代假字符串。我也在使用故事板。
    猜你喜欢
    • 1970-01-01
    • 1970-01-01
    • 2019-09-27
    • 1970-01-01
    • 1970-01-01
    • 1970-01-01
    • 1970-01-01
    • 2018-04-25
    • 2021-05-24
    相关资源
    最近更新 更多