Find centralized, trusted content and collaborate around the technologies you use most.
Teams
Q&A for work
Connect and share knowledge within a single location that is structured and easy to search.
我试图对 the 进行子类化UIImagePickerController并从中返回 YESshouldAutorotateToInterfaceOrientation但这没有用
UIImagePickerController
shouldAutorotateToInterfaceOrientation
根据文档
重要提示: UIImagePickerController 类仅支持纵向模式。此类旨在按原样使用,不支持子类化。
所以我认为你的方法不会奏效。