iOS Multipeer connectivity framework invitationHandler doesn't seem to accept?

后端 未结 4 469
囚心锁ツ
囚心锁ツ 2020-12-30 10:35

I\'m using the mutlipeer connectivity framework for the first time, and I want programmatic ( not with the assistant classes) control.

Everything is working exactly

4条回答
  •  没有蜡笔的小新
    2020-12-30 11:07

    The "didReceiveCertificate" delegate method is optional and if you don't implement it, the framework will assume that you accept the certificate (note that certificate can be nil).

    However, if you implement the method and then leave it empty, then, sure, the peer will not connect, because the framework will expect you to call the certificateHandler with either a YES or NO.

提交回复
热议问题