IOS 纹理填充 背景

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

原来一直都是用的都是一整张图 --!

posted on 2012-11-15 23:45  cokecoffe  阅读(831)  评论(0编辑  收藏  举报

导航