FirstViewController
에 모달로 SecondViewController
을 표시하고 SecondViewController
에는 반투명 배경 (70 % 불투명도의 흰색)이 있습니다.반투명 배경을 가진 모달 ViewController를 표시합니다.
제가 직면 한 문제는 SecondViewController
을 제시하면 의보기가 SecondViewController
이 끝날 때까지 계속 표시됩니다.
이렇게하면 UI가 느리게 보입니다. 기대하는 동작은 에 대한보기가 보이지 않아야하거나 SecondViewController
의보기가 나타나기 전에 서서히 사라져야하는 것처럼 SecondViewController
이 표시되는 즉시 발생합니다.
도움이 될 것입니다.
내가 제시에 사용하는 코드는 다음과 같습니다
SecondViewController *cntrlr = (SecondViewController *)[[UIStoryboard activationStoryboard] instantiateViewControllerWithIdentifier:@“UserVC”];
[cntrlr setModalPresentationStyle:UIModalPresentationPopover];
[self presentViewController:cntrlr animated:YES completion:nil];
모델 코드를 입력 할 수 있습니까? –
@yagneshdobariya 나는 질문을 편집했습니다. plz는 모양을 가지고 있습니다. –
pls는 대답을 살펴 봅니다. –