有没有办法在CPView上的objective-j中平铺图像? 类似的东西:
谢谢你们;)
答案 0 :(得分:0)
试试这个:
var image = [[CPImage alloc]
initWithContentsOfFile:"Resources/myimage.gif"
size:CGSizeMake(20, 20)];
var imageView = [[CPImageView alloc] initWithFrame:CGRectMake(0,0,500,500)];
[imageView setBackgroundColor:[CPColor colorWithPatternImage:image]];