Why does iOS not stay in the parent window when closing the modal window

  ios, question

A->B->C (modal mode on)

When used in c

[self dismissViewControllerAnimated:YES completion:nil];

When you close the C window, you return directly to A.

I originally wanted to stay in b.

How should I operate?

In addition, I repeatedly verified it

A1 (normal view) click the button ->B->C (modal view)
A2(CollectionView) in didselectitematindexposition-> b-> c (modal view)

Note that B and C in the above two operation flows are the same

The second operation will jump directly back to A2