如何设置currentUser如下?
大谢谢
guard let currentUser = ServicesManager.instance().currentUser() else{
return
}
currentUser.fullName = defaultCurrentUserFullName
currentUser.password = defaultCurrentUserPassword
error shown
2017-05-28 05:51:58.346 FreeChat[2615:41904] Init - QMAuthService service...
2017-05-28 05:51:58.347 FreeChat[2615:41904] Init - QMChatService service...
2017-05-28 05:51:58.350 FreeChat[2615:41967] [QBCore] Restoring QBSession, status = -25300. See "Security Error Codes" (SecBase.h)
2017-05-28 05:51:58.355 FreeChat[2615:41904] Init - QMUsersService service...
答案 0 :(得分:1)
您应该使用此用户登录。
/**
* User login
*
* @param user QuickBlox User
* @param completion completion block
*
* @return Cancelable request
*/
- (QBRequest *)logInWithUser:(QBUUser *)user
completion:(nullable void(^)(QBResponse *response, QBUUser * _Nullable userProfile))completion;
我们将把方法ServicesManager.instance()。currentUser()作为只读属性或在将来的版本中删除它。