0

親と子の2つのviewControllersがあり、親から子viewControllerを次のように開いています。

ClildVC *modal = [[ClildVC alloc] initWithNibName:nil bundle:nil];
modal.modalPresentationStyle = UIModalPresentationPageSheet;
[self presentModalViewController:modal animated:YES];

子ビューから親に戻るときは、これを使用します。

[self dismissModalViewControllerAnimated:YES];

親viewControllerに戻るときに、初めて開いたようにリフレッシュ(リロード)したい。

4

3 に答える 3

1

dismissModalViewControllerAnimated:iOS6 で非推奨になりました

dismissViewControllerAnimated:completion:親View Controllerでデータ更新を呼び出した後、子View ControllerでiOS5で導入されたものを使用する必要があります

于 2015-07-09T22:27:29.293 に答える
0

You are initiating with no nib file and no bundle identifier.

So its looking for a non existent nib in a bundle that isn't there

either design the nib in IB (xcode 4) or storyboard (4.2 +) or programatically by using the designated initialiser for the modal view controller.

于 2013-05-23T15:06:45.657 に答える