質問

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