Posted: 2nd Nov 2011 7:10
in the function ,I will show the leader board. but I don't know how to call the function.
Posted: 2nd Nov 2011 9:09
Would love to know too.

I think some day, someone should do a step by step tutorial how to:

* put game center leaderboard in t2
* put admobs, iads, etc in t2

I think it would be a good article for the newsletter
Posted: 12th Nov 2011 0:08
If you are using XCode, which sounds like you are, you can mark your .cpp files as obj-c by right clicking on the file, choosing GetInfo and check the source type is objcpp. Then you can use the pointer to the objective-c class as you would in objective-c.

At least that's my understanding of it.
Posted: 12th Nov 2011 4:22
Thank you. I create a global variable about UntitledViewControl. Then I call my function in the cpp file.
Posted: 12th Nov 2011 13:09
So in the end you can put in both obj-c & c++ code in the cpp file, and all would work, since its marked as type OBJCPP ?
Posted: 12th Nov 2011 15:50
So in the end you can put in both obj-c & c++ code in the cpp file, and all would work, since its marked as type OBJCPP ?

@bjadams yes, you are right.
Posted: 12th Nov 2011 17:28
great will try it