我有这样的方法:
- (void) advertiser:(MCNearbyServiceAdvertiser *)advertiser
didReceiveInvitationFromPeer:(MCPeerID *)peerID
withContext:(NSData *)context
invitationHandler:(void(^)(BOOL accept,
MCSession *session))invitationHandler{
我需要复制并存储邀请处理程序。稍后将通过以下方式使用它:
invitationHandler(accept, session);
我怎样才能做到这一点?