ここで少し問題があります。さまざまなウィンドウ用に、アプリケーションのメイン ビューがあります。私はそれらをビューの視界から外し、必要なときにビューに移動するようにアニメーション化しています。テキストフィールドを作成することを決定するまで、これで問題が発生したことはありません. ボタンをクリックしてビューを表示すると表示されますが、テキストフィールドをクリックして入力し、キーボードが読み込まれるとビューが消えますが、ボタンをクリックしてビューを元に戻すと、テキストフィールドが入力されて準備が整います入力し。誰でも解決策はありますか?ビューが表示される方法のコードを以下に添付します。
ありがとう、
カーティスB
- (IBAction)login:(id)sender {
sidebutton = @"0";
[UIView beginAnimations:nil context:NULL];
[UIView setAnimationDuration:0.0];
[self.blackhide setFrame:CGRectMake(self.blackhide.frame.origin.x -750, self.blackhide.frame.origin.y, self.blackhide.frame.size.width, self.blackhide.frame.size.height)];
[UIView setAnimationDuration:0.5];
[self.button2 setFrame:CGRectMake(self.button2.frame.origin.x - 300, self.button2.frame.origin.y, self.button2.frame.size.width, self.button2.frame.size.height)];
[self.mainview setFrame:CGRectMake(self.mainview.frame.origin.x - 300, self.mainview.frame.origin.y, self.mainview.frame.size.width, self.mainview.frame.size.height)];
[self.sidebarview setFrame:CGRectMake(self.sidebarview.frame.origin.x - 376, self.sidebarview.frame.origin.y, self.sidebarview.frame.size.width, self.sidebarview.frame.size.height)];
[UIView setAnimationDuration:0.0];
[self.loginview setFrame:CGRectMake(self.loginview.frame.origin.x + 376, self.loginview.frame.origin.y, self.loginview.frame.size.width, self.loginview.frame.size.height)];
}