【发布时间】:2013-12-10 10:41:16
【问题描述】:
- (void)completedWithResult:(Result *)result{
// QuickBlox session creation result
if([result isKindOfClass:[QBAAuthSessionCreationResult class]]){
// Success result
if(result.success){
// Set QuickBlox Chat delegate
//
[QBChat instance].delegate = self;
QBUUser *user = [QBUUser user];
user.ID = ((QBAAuthSessionCreationResult *)result).session.userID;
user.password = @"password";
// Login to QuickBlox Chat
[[QBChat instance] loginWithUser:user];
}
else
{
UIAlertView *alert = [[UIAlertView alloc] initWithTitle:@"Error" message:[[result errors] description] delegate:nil cancelButtonTitle:@"Ok" otherButtonTitles:nil];
[alert show];
}
}
}
-[QBDDXMLElement attributeFloatValueForName:withDefaultValue:]:无法识别的选择器发送到实例 0x96c4fe0 2013-12-10 16:06:46.716 QUICKBloxTestApp[5990:3907] 由于未捕获的异常“NSInvalidArgumentException”而终止应用程序,原因:'-[QBDDXMLElement attributeFloatValueForName:withDefaultValue:]:无法识别选择器发送到实例 0x96c4fe0'*
应用程序在调用 [[QBChat instance] loginWithUser:user] 时崩溃;
【问题讨论】:
-
假设您没有直接调用名为
attributeFloatValueForName:withDefaultValue:的方法,我会尝试在您的构建方案中打开僵尸,看看它是否提供了更好的信息。