0

私は次のコードを使用していますが、親ビュー(self.view)ではなく親ビューの下にサブビューが追加されています。

 -(IBAction)okbutton:(id)sender

 {

        obj = [[imgViewNextController alloc] initWithNibName:@"green" bundle:nil];

             obj.view.frame = self.view.frame;

   [UIView beginAnimations:@"curldown" context:nil];
     [UIView setAnimationDelegate:self];
   [UIView setAnimationDuration:.5];
   [UIView setAnimationTransition:UIViewAnimationTransitionCurlDown forView:self.view cache:YES];
    [self.view addSubview:obj.view];
   //[self.view insertSubview:obj.view aboveSubview:self.view];
    [UIView commitAnimations];
4

1 に答える 1

1

TableView を使用していますか?

一部のオブジェクトは(奇妙な)ことを行うため、関連している可能性があります。

可能であれば、自己オブジェクトに関する詳細情報を使用してください。

ちなみに、あなたは試すことができます

[ self.view insertSubview: atIndex: ];

また

[ self.view insertSubview: aboveSubview: ];>

幸運を !

于 2010-09-20T11:53:56.673 に答える