改变UIAlertView背景
来源:互联网 发布:优化组织管理模式 编辑:程序博客网 时间:2024/06/05 19:07
UIAlertView *theAlert = [[[UIAlertViewalloc] initWithTitle:@"提示" message: @"错误" delegate:nil cancelButtonTitle:@"Cancel" otherButtonTitles:@"Okay",nil] autorelease]; [theAlert show]; UIImage *theImage = [UIImageimageNamed:@"alertBg"]; theImage = [theImage stretchableImageWithLeftCapWidth:0topCapHeight:0]; CGSize theSize = [theAlert frame].size; UIGraphicsBeginImageContext(theSize); [theImage drawInRect:CGRectMake(5, 5, theSize.width-10, theSize.height-20)]; theImage = UIGraphicsGetImageFromCurrentImageContext(); UIGraphicsEndImageContext(); theAlert.layer.contents = (id)[theImage CGImage];
0 0
- 改变UIAlertView背景
- 改变UIAlertView背景
- 自定义 UIAlertVIew 背景
- 自定义UIAlertView背景
- 改变UIAlertView中的属性
- 改变背景
- UIAlertview改变按钮位置 大小
- 关于自定义UIAlertView背景的方法收集
- UIAlertView点击背景消失的方法
- ios开发之改变UIAlertView背景图片
- 改变UIALertView中button的字体颜色
- 谈谈改变 UIAlertView 和 UIActionSheet 的颜色
- 自主改变背景
- 改变对话框背景颜色
- 循环改变背景颜色
- 改变td背景
- 改变对话框的背景
- 改变背景壁纸
- 【发送邮件按钮】尝试一下源码编辑
- 为何Android开发中不推荐使用全局变量传参
- 随笔
- 分类 and 扩展
- ES系统封装教程 高级进阶版 提供Wind7,xp系统下载 (by 星空武哥)
- 改变UIAlertView背景
- 我对计算机科学的一些认识
- 博客搬家
- w3school HTML基础二
- 水仙花数
- 海量数据框架变迁——阿里巴巴上市背后的技术力量
- 《编写高质量代码:改善Java程序的151个建议》 建议17
- The 70th problem,UVa10396 Vampire Numbers
- iOS设计模式 - 通知机制(Notification)