self.mapper.identityIdsForQuickbloxUserIds(userIDs.map{($0 as! NSNumber).unsignedLongValue}, completion: { identityIdsMapping, error in
无法转换调用结果类型“_?” 到预期类型'[UInt]'
userIDs
是NSSet
这是一个功能:
func identityIdsForQuickbloxUserIds(userIds:[UInt], completion:(identityIdsMapping:[UInt: String]?, error:NSError?) -> Void)
如何以正确的方式转换它?
这是为我返回的外部函数:
- (void)allDialogsWithPageLimit:(NSUInteger)limit
extendedRequest:(QB_NULLABLE NSDictionary *)extendedRequest
iterationBlock:(void(^QB_NULLABLE_S )(QBResponse *QB_NONNULL_S response, NSArray QB_GENERIC(QBChatDialog *) *QB_NULLABLE_S dialogObjects, NSSet QB_GENERIC(NSNumber *) * QB_NULLABLE_S dialogsUsersIDs, BOOL * QB_NONNULL_S stop))iterationBlock
completion:(void(^QB_NULLABLE_S)(QBResponse * QB_NONNULL_S response))completion;
如您所见,我们从这里获得了 NSSet:
NSSet QB_GENERIC(NSNumber *) * QB_NULLABLE_S dialogsUsersIDs
该方法来自QuickBlox SDK