0
回答
iOS开 集成环信

集成环信遇到了问题,请大神们帮帮我,谢谢

问题:用xcode5运行 集成环信例子,输出账号密码,提示为空。

是按照这个视频做的http://v.youku.com/v_show/id_XNzYzMDUyMTgw.html?from=y1.2-1-87.3.1-2.1-1-1-0(只做的4分钟处)

除了配置环境sdk外,只写了以下代码

- (BOOL)application:(UIApplication *)application didFinishLaunchingWithOptions:(NSDictionary *)launchOptions
{
    self.window = [[UIWindow alloc] initWithFrame:[[UIScreen mainScreen] bounds]];
    // Override point for customization after application launch.
    self.window.backgroundColor = [UIColor whiteColor];
    [[EaseMob sharedInstance] registerSDKWithAppKey:@"easemob-demo#chatdemoui"
                                       apnsCertName:nil];
    [[EaseMob sharedInstance].chatManager asyncLoginWithUsername:@"1963"
                                                        password:@"3333"
                                                      completion:^(NSDictionary *loginInfo, EMError *error) {
                                                          NSLog(@"loginInfo--%@",loginInfo);
                                                      } onQueue:nil];
    
    [self.window makeKeyAndVisible];
    return YES;
}



谢谢大家

<无标签>
举报
mixuan
发帖于4年前 0回/5K+阅
顶部