UIAlertview 添加图片

 

 - (void)willPresentAlertView:(UIAlertView *)alertView {

 

 在这个方法中, 绘制需要的东西

 uiview *myView = [uiview alloc] init

 alertView addsubview:myview

 

 }

 

 方法二、

 自定义一个alertview

 

 @interface MyAlertView : UIAlertView

 然后实现

 

 - (void)drawRect

 - (void)layoutSubviews

posted @ 2016-09-08 16:01  新年新气象  阅读(362)  评论(0编辑  收藏  举报