Post

Replies

Boosts

Views

Activity

[[UIDevice currentDevice] setValue:] orientation issue in iOS 16
i am trying to change the orientation for user event in iOS 16 Beta 5. [[UIDevice currentDevice] setValue:[NSNumber numberWithInteger:UIInterfaceOrientationLandscapeLeft] forKey:@"orientation"]; but i am getting below error in the log [Orientation] BUG IN CLIENT OF UIKIT: Setting UIDevice.orientation is not supported. Please use UIWindowScene.requestGeometryUpdate(_:) but it's working in iOS 15 and below. As per Apple beta 4 release notes UIKit UIDevice orientation issue is been fixed. https://developer.apple.com/documentation/ios-ipados-release-notes/ios-ipados-16-release-notes Fixed: Attempting to set an orientation on UIDevice via setValue:forKey: isn’t supported and no longer works. (93367651) i am not sure why its not working for me. i am using XCode Version 14.0 beta 5 (14A5294e) and iOS 16.0 Beta 5 since this orientation feature already implemented in our Live app we are currently not expecting code change. Please suggest.
Topic: UI Frameworks SubTopic: UIKit Tags:
2
0
3.7k
Aug ’22