Instance Method

addRecipientPlayers:

Adds recipients based on their Game Center player identifiers.

Declaration

- (void)addRecipientPlayers:(NSArray<GKPlayer *> *)players;

Parameters

players

An array with one or more GKPlayer objects, each containing an player identifier.

Discussion

If you do not add at least once recipient, the recipients field is selected when the view controller is presented so that the player can type a list of recipients. Adding more players than defined by the maxNumberOfRecipients property causes an exception to be thrown.

See Also

Adding Recipients

- addRecipientsWithEmailAddresses:

Adds recipients based on their email addresses..

- addRecipientsWithPlayerIDs:

Adds recipients based on their Game Center player identifiers.

Deprecated

Beta Software

This documentation contains preliminary information about an API or technology in development. This information is subject to change, and software implemented according to this documentation should be tested with final operating system software.

Learn more about using Apple's beta software