跳转到主要内容
PRODUCT DOCUMENTS

快速找到所需文档,高效完成接入与排障

浏览产品文档与友盟 Skill,展开目录并阅读正文。

[SUIE10001] 登录报错报错currentViewController should be nil

问题描述

登录报错报错currentViewController should be nil

  • 错误日志:

Domain=UMSocialPlatformErrorDomain Code=2003 "(null)" UserInfo={message=currentViewController should be nil or is isKindOfClass UIViewController
  • 错误原因:所使用的self不是UIViewController类型

    解决方案

在登录部分代码中: [[UMSocialManager defaultManager] getUserInfoWithPlatform:platformType currentViewController:self,把self替换成nil