당신은 애플이 예제와 같이 GKFriendRequestComposeViewController를 구성하는 한 부분으로 addRecipientsWithPlayerIDs를 사용 :이 전체 제안에 의해 혼란 스러워요게임 센터 : addRecipientsWithPlayerIDs ... 어떻게 이해가 되나요?
- (void) inviteFriends: (NSArray*) identifiers
{
GKFriendRequestComposeViewController *friendRequestViewController = [[GKFriendRequestComposeViewController alloc] init];
friendRequestViewController.composeViewDelegate = self;
if (identifiers)
{
[friendRequestViewController addRecipientsWithPlayerIDs: identifiers];
}
[self presentModalViewController: friendRequestViewController animated: YES];
[friendRequestViewController release];
}
. 아마도 PlayerID를 요청에 전달하여 친구를 초대 할 수 있습니다. 그러나 이미 친구 인 플레이어로부터 만 playerID를 얻을 수 있습니다. 따라서 이미 친구가 아닌 친구로 사람들을 초대 할 수 없으며 이미 친구 인 친구로만 사람들을 초대 할 수 있습니다. 이 방법의 핵심은 무엇입니까? 어떻게 작동합니까?
이메일 주소가 같거나 그냥 비워 두지 만 그 목적이 무엇인지 이해하려고 시도하고 있습니다. 이 방법입니다. 쓸데없는 것 같습니다. 즉, 친구 요청이 어떻게 작동하는지에 대한 중요한 사실을 놓치고 있습니다. 이것을 만들고 빛을 발산 할 수있는 누군가에게 감사드립니다.
특히, 자동화가되어있는 경우. 또는 많은 플레이어 게임에서 친구가 모르는 플레이어를 초대 할 수 있다고 가정합니다. –