issue in openfeint when i call setHighScore function

580 Views Asked by At

I am integrating openfient SDK in my app. When I want to submit user's score and called a function as below it is giving error 'OFDelegate' was not declared in this scope

[OFHighScoreService setHighScore:scores forLeaderboard:@"112033" onSuccess:OFDelegate() onFailure:OFDelegate()];

Please help me to shortout this issue.

2

There are 2 best solutions below

2
On

Make sure you have integrated OpenFeint SDK with your app. You may find this video useful: http://vimeo.com/5633994

0
On

This problem may occur when upgrading from an old version of open feint or reading an old post about Open Feint, as this method is no longer available, yet still compiles and runs.

The following lines will probably be enough to solve this problem:

[OFHighScoreService setHighScore:scores forLeaderboard:@"112033"
                 onSuccessInvocation:[OFInvocation invocationForTarget:nil selector:nil] 
                 onFailureInvocation:[OFInvocation invocationForTarget:nil selector:nil]];

Just don't forget to import:

#import "OFHighScoreService.h"