ptlCoder

Results 9 comments of ptlCoder

UIView * window = [[UIApplication sharedApplication].windows objectAtIndex:0]; [UIView beginAnimations:nil context:nil]; [UIView setAnimationDuration:0.5]; [UIView setAnimationDelegate:self]; window.transform = CGAffineTransformMakeRotation(M_PI_2); [UIView commitAnimations];

解决了嘛, 我这边也遇到了

所有格式都支持吗

iOS18 特性导致的

不要直接往tabbarVC add控制器,这样的话,在某些第三方库比如zfplayer横屏切换后,会导致多一个空位,因为tabVC多了一个子控制器,可以打印self.tabBarController.viewControllers 看看是不是多了一个, 横屏完后,系统会更新tabbarvc 会导致你明明一开始设置了三个控制和三个tabbaritem,就会变成四个子控制器,三个item,空位那个其实生成了一个无名的tabbaritem,你点击就会闪退。 所以不要直接添加子控制器到tabbarVC上

Behind the set UIDesignRequiresCompatibility properties is short, can remove, or as soon as possible to fit