tôi trình bày một bộ điều khiển xem với nhau:"viewWillTransitionToSize:" không được gọi trong iOS 9 khi bộ điều khiển xem được trình bày modally
- (void)showModalView
{
UIStoryboard *storyboard = [UIStoryboard storyboardWithName:@"Main" bundle:nil];
MySecViewController *mySecViewController = [storyboard instantiateViewControllerWithIdentifier:@"secController"];
mySecViewController.delegate = self;
[self presentViewController:mySecViewController animated:YES completion:nil];
}
Sau đó, trong phần giới UIViewController
, phương pháp viewWillTransitionToSize:withTransitionCoordinator:
được gọi trong iOS 8
nhưng không trong iOS 9
...
Cảm ơn
Tôi cũng đang gặp phải sự cố tương tự. – iChirag