我尝试将人人 iOS 应用程序与 SocialPlugin 文档一起制作。
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.hm--
#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;
}