2
3

More than 5 years have passed since last update.

ViewControllerを閉じる

Posted at
[self dismissViewControllerAnimated:true completion:^() {
    NSLog(@"finish closing");
}];

1つ目のパラメータでアニメーションしながら消えるかどうかを指定します。
表示の際に使用したアニメーションに応じて閉じる際のアニメーションも変わるようです。

2つ目のパラメータは閉じ終わった後の動作をblocksで指定します。

2
3
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
2
3