次のようなエラーのあるログイン画面が表示されます。
_loginViewController.error = error;
[_navigationController presentModalController: _loginViewController
animated: YES];
LoginViewController では、次のようにエラー メッセージを画面にスライドさせたいと考えています。
- (void)showErrorAnimated: (BOOL)animated;
{
_errorLabel.text = [_error localizedDescription];
[UIView beginAnimations: @"showError"
context: NULL];
CGRect frame = [_errorView frame];
frame.origin.y = 0; // starts at -frame.size.height
[_errorView setFrame: frame];
[UIView commitAnimations];
}
しかし、View Controllerのタイミングに合わせてこれを呼び出す方法がわかりませんpresentModalController:animated:。
このタイミングを機能させるにはどうすればよいですか?