0

別のView Controllerを提示するView Controllerが提示されています。2 番目のビュー コントローラーは、その下のビューを透明にしたり、下のビュー コントロールを無効にしたりしません。誰かがこれに遭遇しましたか?どうやって修正できましたか??

//view controller for invalid username/password popup
IncorrectPasswordViewController *viewController = [[IncorrectPasswordViewController alloc] init];
viewController.view.layer.borderColor = [UIColor whiteColor].CGColor;
viewController.view.layer.borderWidth = 3.0f;

//push the modal on the screen
viewController.modalPresentationStyle = UIModalPresentationFormSheet;
[self presentViewController:viewController animated:YES completion: nil];
CGRect r = CGRectMake(self.view.bounds.size.width/2 - 150,
                      self.view.bounds.size.height/2 - 70,
                      300, 140);
r = [self.view convertRect:r toView:viewController.view.superview.superview];
viewController.view.superview.frame = r;
4

0 に答える 0