简体   繁体   English

UIAlertView转换在iOS7上不起作用

[英]UIAlertView transform is not working on iOS7

I have an uialerview that I want to transform to the bottom of the screen.The following code seems to work on iOS 6 but not iOS7. 我有一个想要转换到屏幕底部的uialerview。以下代码似乎可以在iOS 6上运行,但不能在iOS7上运行。 I was wondering if there is some way else to accomplish this. 我想知道是否还有其他方法可以做到这一点。

    alert.transform = CGAffineTransformTranslate(alert.transform, 0.0, -145.0);

You probably wont be able to achieve this with the standard UIAlertView anymore because Apple have restricted what you can do to controls like the AlertView and ActionSheets in iOS7 您可能将无法再使用标准UIAlertView来实现此目的,因为Apple已将您只能对iOS7中的AlertView和ActionSheets这样的控件进行限制

It might be worth looking at some alternatives to UIAlertView instead. 也许值得研究一下UIAlertView替代方法。

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM