addRecipientPlayers(_:)
Adds recipients based on their Game Center player identifiers.
Declaration
func addRecipientPlayers(_ players: [GKPlayer])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.