OGeek|极客世界-中国程序员成长平台

标题: ios - 如何在 iOS 7 中转换 UIAlertView? [打印本页]

作者: 菜鸟教程小白    时间: 2022-12-12 20:50
标题: ios - 如何在 iOS 7 中转换 UIAlertView?

我有一个肖像应用程序,使用图像 Controller 拍照,但我指示用户在风景中拍照,效果很好,但是当照片根据我的应用程序不正确时,它会发出警报正确拍摄另一张照片,这里 UIAlertView 是纵向的,看起来完全不正常,所以我尝试转换我的 UIAlertView 不起作用,在下面找到我的代码来转换 UIAlertView

 alertView.transform=CGAffineTransformMakeRotation(M_PI_2);

此应用程序在 iOS 7 中运行



Best Answer-推荐答案


如果你想通过变换来伪造旋转,请在 AlertView 的窗口上做。

alertView.window.transform = CGAffineTransformMakeRotation(M_PI_2);

关于ios - 如何在 iOS 7 中转换 UIAlertView?,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/22657264/






欢迎光临 OGeek|极客世界-中国程序员成长平台 (http://sqlite.in/) Powered by Discuz! X3.4