开发者

The custom UIAlertView works fine in the IOS 4.0 but it shows the default bounding box for the ios 4.2

开发者 https://www.devze.com 2023-01-29 05:41 出处:网络
The custom UIAlertView works fine in the IOS 4.0 but it shows the default bounding box for the ios 4.2 .Do anybody know why this happens 开发者_开发问答for my customised alertviewIf you\'ve customized

The custom UIAlertView works fine in the IOS 4.0 but it shows the default bounding box for the ios 4.2 .Do anybody know why this happens 开发者_开发问答for my customised alertview


If you've customized a UIAlertView by traversing the private view hierarchy and altering elements there, there is no guarantee that your code will work correctly between OS updates. This is exactly why Apple tells you not to do this.

If you need to have something that looks like a UIAlertView, but has your own custom controls, I drew a replica of this view using Quartz in a sample application here.

0

精彩评论

暂无评论...
验证码 换一张
取 消

关注公众号