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

有帮助吗?

解决方案

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.

许可以下: CC-BY-SA归因
不隶属于 StackOverflow
scroll top