What am I doing wrong in Swift for calling this Objective-C block/API call?

后端 未结 3 1197
后悔当初
后悔当初 2021-01-20 01:40

I\'m using RedditKit to integrate Reddit into an app, and in Objective-C I called the API as follows (and it worked fine):

    [[RKClient sharedClient] signI         


        
3条回答
  •  感情败类
    2021-01-20 01:45

    It probably doesn't like your RKLink[]! type for collection as NSArray can theoretically contain any type of object. Try making collection an Array! or just an NSArray! to confirm.

提交回复
热议问题