Open onmyway133 opened 7 years ago
Assertion failure in -[_UIAlertControllerAnimatedTransitioning _animateTransition:completionBlock:], /BuildRoot/Library/Caches/com.apple.xbs/Sources/UIKit_Sim/UIKit-3599.6/_UIAlertControllerTransitioning.m:146 UIAlertController is expected to have a visual style during transitioning Solution 1: Remove supportedInterfaceOrientations Solution 2: Set a dummy UIViewController just before
Assertion failure in -[_UIAlertControllerAnimatedTransitioning _animateTransition:completionBlock:], /BuildRoot/Library/Caches/com.apple.xbs/Sources/UIKit_Sim/UIKit-3599.6/_UIAlertControllerTransitioning.m:146
UIAlertController is expected to have a visual style during transitioning
supportedInterfaceOrientations
window?.rootViewController = UIViewController() window?.rootViewController = MainController()
UIWindow
public var window: UIWindow?
Thanks, it does work! Buy why?
@ChenReason Hi, the culprit is this https://medium.com/@onmyway133/xcode-8-and-uialertcontroller-87c4f599e21
UIWindow
declaration https://medium.com/@onmyway133/xcode-8-and-uialertcontroller-87c4f599e21