Question

I have to following question.

In the apple documentation, there is the following clas methode

+(NSUInteger)maxNumberOfRecipients

How can I define this clas Methode to 5 for example.

I tried in my friendrequestcontroller the following code.

[friendRequestController.maxNumberOfRecipients  = 5];

But I always get the error

property 'maxNumberOfRecipients' not found on object of type 'GKFriendRequestComposeViewController*'

What did I wrong?

#import <GameKit/GameKit.h>

This one is implemented, so it should work!

thanks for your solutions!

joel

Was it helpful?

Solution

The error is right :) you can't set maxNumberOfRecipients. It's a read-only class with which you can merely "determine the maximum number if recipients" according to the iOS Developer Library. If you need to add more recipients, you need to make multiple requests.

Licensed under: CC-BY-SA with attribution
Not affiliated with StackOverflow
scroll top