0
我試圖製作Renren iOS應用程序以及SocialPlugin文檔。無法初始化RenRen SDK的RMConnectCenter
http://wiki.mobile.renren.com/en/index.php/Social_Plugin_Download
我做的AppDelegate初級講座。但是,每次我調用應用程序時,它在RMConnectCenter initializeConnectWithAPIKey點失敗 。
該代碼是這樣的。
--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;
}
對不起,延遲迴復。實際上,我通過替換真正的鑰匙來傳遞兩個鍵。上面的代碼是替代假字符串。 另外我正在使用故事板。 – 2013-03-30 00:17:13