1

我正在尝试构建一个使用 PubNub 的应用程序,但我不知道如何设置聊天名称。Github 演示似乎没有处理聊天名称,但不识别聊天来自谁似乎很奇怪。我需要使用某个字典键吗?我试过“chatName”,但没有用。

4

1 回答 1

0

您是否尝试过这样的“用户名”:

- (NSDictionary *)asDictionary;
{
    return @{
   @"type" : @"chat", @"user_id" : @([self userId]), @"user_name" : [self userName], @"user_stores" : [self userStores], @"body" : [self body], @"time" : [self time]
    };
}
于 2013-01-15T05:13:04.803 回答