0
1

Delete article

Deleted articles cannot be recovered.

Draft of this article would be also deleted.

Are you sure you want to delete this article?

More than 3 years have passed since last update.

SKStoreReviewController.requestReview()がiOS14から非推奨になった件について

Last updated at Posted at 2021-07-28

SKStoreReviewController.requestReview()

レビューをユーザーに促す場合に使われていたコード。
iOS14以降は非推奨となった。

SKStoreReviewController.requestReview()

一行で書けていたのに残念😕

公式によると

requestReview(in:)を使いなさいとのこと。

iOS14以降の書き方

if let scene = UIApplication.shared.connectedScenes.first as? UIWindowScene {
    SKStoreReviewController.requestReview(in: scene)
}

このように書けば良さそう!

お知らせ

現在、iOS開発案件を業務委託で募集中です(副業)。TwitterDMご依頼をお待ちしています。

0
1
0

Register as a new user and use Qiita more conveniently

  1. You get articles that match your needs
  2. You can efficiently read back useful information
  3. You can use dark theme
What you can do with signing up
0
1

Delete article

Deleted articles cannot be recovered.

Draft of this article would be also deleted.

Are you sure you want to delete this article?