문제

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