现在的位置: 首页 > 综合 > 正文

iphone开发必知点之--填充view纹理背景

2012年01月08日 ⁄ 综合 ⁄ 共 170字 ⁄ 字号 评论关闭

纹理填充只要几个像素的小图

UIView *testView = [[UIView alloc] initWithFrame:CGRectMake(0, 0, 200, 50)];
testView.backgroundColor = [UIColor colorWithPatternImage: [UIImage imageNamed:@"纹理图片.png"]];

 

抱歉!评论已关闭.