Find centralized, trusted content and collaborate around the technologies you use most.
Teams
Q&A for work
Connect and share knowledge within a single location that is structured and easy to search.
有没有办法在 CPView 上平铺objective-j 中的图像?类似于:
多谢你们 ;)
尝试这个:
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]];