Find centralized, trusted content and collaborate around the technologies you use most.
Teams
Q&A for work
Connect and share knowledge within a single location that is structured and easy to search.
我正在尝试构建一个使用 PubNub 的应用程序,但我不知道如何设置聊天名称。Github 演示似乎没有处理聊天名称,但不识别聊天来自谁似乎很奇怪。我需要使用某个字典键吗?我试过“chatName”,但没有用。
您是否尝试过这样的“用户名”:
- (NSDictionary *)asDictionary; { return @{ @"type" : @"chat", @"user_id" : @([self userId]), @"user_name" : [self userName], @"user_stores" : [self userStores], @"body" : [self body], @"time" : [self time] }; }