[ios]更改控件的背景 【转】
来源:互联网 发布:淘宝店铺装修css代码 编辑:程序博客网 时间:2024/05/17 16:55
- UIAlertView *alert = [[[UIAlertView alloc] initWithTitle:@"标题"
- message: @"消息!"
- delegate:nil
- cancelButtonTitle:@"取消"
- otherButtonTitles:@"确定",nil] autorelease];
- [alert show];
- UIImage *theImage = [UIImage imageNamed:@"loveChina.png"];
- theImage = [theImage stretchableImageWithLeftCapWidth:0. topCapHeight:0.];
- CGSize theSize = [theAlert frame].size;
- UIGraphicsBeginImageContext(theSize);
- [theImage drawInRect:CGRectMake(0, 0, theSize.width, theSize.height)];
- theImage = UIGraphicsGetImageFromCurrentImageContext();
- UIGraphicsEndImageContext();
- theAlert.layer.contents = (id)[theImage CGImage];
0 0
- [ios]更改控件的背景 【转】
- (IOS)更改UIView的背景
- 更改控件背景
- 评分控件 更改背景
- MFC更改控件的背景和字体颜色
- 关于IOS searchbar更改背景
- ios更改UITabBarController背景以及选中背景图片的方法
- 更改UIView的背景
- 更改RadioButton的背景
- 更改UIView的背景
- IOS-UITableView更改背景以及UITabelViewCell更改背景
- MFC更改控件字体颜色背景等
- MFC程序 更改 文本框 控件背景
- vs2008 MFC程序 更改 文本框 控件背景
- iOS 更改导航栏背景颜色
- 更改cell选中的背景
- 更改tabblebar的背景颜色
- 更改popmenu的背景颜色
- [ios]iOS模拟器应用程序目录结构
- [ios]让alertView 自动消失【转】
- [ios]自定义Notifacion
- [ios] delegate用法
- [ios] 发短信,从电话薄里选择联系人【转】
- [ios]更改控件的背景 【转】
- [ios]get,post请求 【转】
- [ios]ASiHttpRequest,MKNetworkKit 的使用 【转】
- [算法]空间复杂度,时间复杂度【转】
- [算法] 堆,栈 【转】
- [算法] 快速排序
- [算法]桶排序
- [算法]插入排序
- [算法] 基数排序