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

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

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

 

posted @ 2012-08-18 00:00  月光的尽头  阅读(488)  评论(0编辑  收藏  举报