stretchableImageWithLeftCapWidth:leftCapWidth topCapHeight:
来源:互联网 发布:parsley.js 表单验证 编辑:程序博客网 时间:2024/05/21 14:09
图片拉伸:
- (UIImage *)stretchableImageWithLeftCapWidth:(NSInteger)leftCapWidth topCapHeight:(NSInteger)topCapHeight;
以某个点拉伸图片,主要也就是拉伸纯色背景图
具体用法:
- (void)viewDidLoad { [super viewDidLoad]; // Do any additional setup after loading the view, typically from a nib. self.view.backgroundColor = [UIColor brownColor]; UIImage * image = [UIImage imageNamed:@"bg.png"]; UIImage * stretchImage = [image stretchableImageWithLeftCapWidth:30 topCapHeight:20]; UIImageView * imageView = [[UIImageView alloc] initWithFrame:CGRectMake(10, 74, 300, 49)]; imageView.image = stretchImage; [self.view addSubview:imageView]; UIImageView * imageView1 = [[UIImageView alloc] initWithFrame:CGRectMake(10, 174, 300, 49)]; imageView1.image = image; imageView1.contentMode = UIViewContentModeScaleAspectFit; imageView1.backgroundColor = [UIColor purpleColor]; [self.view addSubview:imageView1]; }
0 0
- stretchableImageWithLeftCapWidth:leftCapWidth topCapHeight:
- - (UIImage *)stretchableImageWithLeftCapWidth:(NSInteger)leftCapWidth topCapHeight:(NSInteger)topCap
- - (UIImage *)stretchableImageWithLeftCapWidth:(NSInteger)leftCapWidth topCapHeight:(NSInteger)topCap
- - (UIIMAGE *)STRETCHABLEIMAGEWITHLEFTCAPWIDTH:(NSINTEGER)LEFTCAPWIDTH TOPCAPHEIGHT:(NSINTEGER)TOPCAP
- - (UIImage*)stretchableImageWithLeftCapWidth:(NSInteger)leftCapWidth topCapHeight:(NSInteger)topCapH
- IOS图片拉伸的方法 UIImage stretchableImageWithLeftCapWidth:leftCapWidth:topCapHeight
- stretchableImageWithLeftCapWidth:topCapHeight:函数用法
- stretchableImageWithLeftCapWidth:topCapHeight:函数用法
- stretchableImageWithLeftCapWidth:topCapHeight:函数用法
- stretchableImageWithLeftCapWidth:topCapHeight:函数用法
- stretchableImageWithLeftCapWidth:topCapHeight:函数用法
- 关于- (UIImage *)stretchableImageWithLeftCapWidth: topCapHeight:
- stretchableImageWithLeftCapWidth:topCapHeight:使用
- stretchableImageWithLeftCapWidth:topCapHeight:函数用法 总结
- iOS图像拉伸,stretchableImageWithLeftCapWidth:topCapHeight:
- stretchableImageWithLeftCapWidth:topCapHeight:函数用法 总结
- 关于stretchableImageWithLeftCapWidth:topCapHeight:方法的原理介绍
- 关于stretchableImageWithLeftCapWidth:topCapHeight方法的原理
- Maven项目build path的时候Libraries下 JRE版本是1.5,但我实际的JRE是1.7,为什么?
- [Built-in Functions] - E
- 手动弹出bootstrap的模态框
- Oracle Enterprise Manager
- ios系统检测wifi是否能访问互联网的几个域名
- stretchableImageWithLeftCapWidth:leftCapWidth topCapHeight:
- office下载地址和破解教程
- IE盒子模型和标准W3C盒子模型
- 17个新手常见Python运行时错误
- linux配置oracle客户端,sqlplus、sqlldr、exp、imp
- 浅析深究什么是中间件
- Codeforces 598E Chocolate Bar (dp)
- 纸牌丰收之c++版本
- Linux平台Oracle多个实例启动