finishedWithAuth not called after authenticate method

前端 未结 5 1064
天涯浪人
天涯浪人 2021-01-20 05:12

I have already set the clientID ,scope and then on button click in MyViewController ,i am calling method login from LoginCLass which works but after [signIn authenticate]

5条回答
  •  星月不相逢
    2021-01-20 06:09

    Since your LoginClass is a Swift class, the fix is to make it a subclass of NSObject.

    I had the same issue: when I tried to set the delegate to a class that was not a subclass of NSObject, the assignment failed and the delegate remained nil. When I added NSObject as a superclass, the assignment worked as expected.

提交回复
热议问题