123456789101112131415161718 |
- #if PLATFORM_IOS
- // This definition is here only for compiler to know about selector requestReview
- @interface UnityStoreReviewController
- + requestReview;
- @end
- bool UnityRequestStoreReview()
- {
- Class classSKStoreReviewController = NSClassFromString(@"SKStoreReviewController");
- if (!classSKStoreReviewController || ![classSKStoreReviewController respondsToSelector: @selector(requestReview)])
- return false;
- [classSKStoreReviewController performSelector: @selector(requestReview)];
- return true;
- }
- #endif
|